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

    How to apply a characters limit to form fields such as address and phone number fields?

    Asked by davidwerner on October 20, 2016 at 02:04 PM

    I don't see any way to put format restrictions on the off the shelf Address and Phone Number inputs. i.e. I can enter as many numeric characters as I want for Zip Code, same with Phone Number, etc. I'm assuming this has something to do with ensuring it's flexible for internationalization but I would have also assumed that you could set format requirements on the fields themselves (as you can do with say the Text input). Is there no way to do this? If not, does everyone just run the risk of getting garbage address and phone data? 

    phone number format number inputs Numeric zip code
  • Profile Image
    JotForm Support

    Answered by Kevin_G on October 20, 2016 at 05:07 PM

    In the address field you cannot set a characters limit, your users are free to enter the needed number of characters, if you would like to limit the number of characters for an specific field in the address field, you would need to switch to use Text Boxes, this way you can set up separated limits or masks to each field: 

    Regarding to the Phone Number field, you can only set up a mask that will limit the entry the number of characters you have allowed in the mask: 

    I would also recommend you to check on our widgets since we have some that will help you to avoid people to enter incorrect information and you may even validate the phone number field entered as well as get the correct address.

    Here are the widgets that will help you with the address:

    https://widgets.jotform.com/app/autocompleted_address

    https://widgets.jotform.com/app/address_map_locator

    https://widgets.jotform.com/app/show_map_location

    These widgets will help you to format the phone number entered:

    https://widgets.jotform.com/app/phone_picker

    https://widgets.jotform.com/app/country_code

    And this one will help specially to validate the phone number via a SMS:

    https://widgets.jotform.com/app/sms_confirmation 

    This guide will help you to add a widget to your form:

    How-to-Add-a-Widget-to-your-Form

    Hope this helps.