What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Phone Number Input without area code portion

    Asked by adamsimmonds on May 19, 2017 at 03:27 PM

    Hi - How can I create a phone number without an area code? In other words, just one field. I guess that I could simply create a regular text field but then autofill won't work.

     

    Many thanks

    Page URL:
    adamsimmonds.co.uk

  • Profile Image
    JotForm Support

    Answered by david on May 19, 2017 at 03:54 PM

    Unfortunately, it is not possible to remove the area code portion of the phone number field.  Your solution of using a short text entry field would be the solution. 

    You can set the validation to numbers for a short text field and format the input mask to the same format as a phone number:

    But I am pretty sure most autofill apps would still consider this a text box.

  • Profile Image

    Answered by adamsimmonds on May 19, 2017 at 05:43 PM
    Thank you. Another question: can I remove the empty option in a drop-down menu? It seems superfluous.
    Many thanks, Adam
    ...
  • Profile Image
    JotForm Support

    Answered by david on May 19, 2017 at 06:08 PM

    It is not possible to remove the blank option in the form builder.  It requires using the full source code of your form and embedding that code to a web page.  You would then be able to disable the blank option by modifying your forms source code:

    <select>

    <option value="" disabled="disabled" selected="selected">Select your option</option>

    <option value="1">1</option>

    <option value="2">2</option>

    <option value="3">3</option>
    </select>

    You would find the code for your dropdown and modify the first option similar to the above.

    It is not possible to do in the form itself. 

  • Profile Image

    Answered by adamsimmonds on May 19, 2017 at 06:43 PM
    Thank you for your reply. I’ll play around with the code as suggeted.
    What’s the logic for this though? As in, why is it not a straightforward option? Is there any benefit in having the empty option?
    Many thanks, Adam
    ---
    ...
  • Profile Image
    JotForm Support

    Answered by Mike on May 19, 2017 at 10:03 PM

    When there is an empty option and the dropdown is set as required, the form user will be forced to manually select the answer rather than skipping the selection.

    When the dropdown is not required, the form user will be able to submit the empty answer.