Address Field: How to make spefeic line optional within the field but require the field. AND how to validate zip code to 5 numbers

  • Profile Image
    Asked on February 23, 2016 at 07:38 PM

    In the address field question I would like the ability to require that the question be complete, but make the street address line 2 field optional for people who may have apartments. If they do not live in an apartment the street address line 2 field is not needed for a complete address. 


    I would also like to know how I can add validation to limit the Zip Code box to 5 numerical characters. 



  • Profile Image
    Answered on February 24, 2016 at 04:57 AM

    If you set address field to be required, then user will need to enter data inside of all fields. Also it is not possible to limit Zip Code box inside of address filed to 5 numerical characters.

    I would suggest you to create all fields from Address field separately. 

    This way you can make all fields to be required, except street address line 2 field. And you can also set zip code field to be numerical and set Max Size to 5 characters. 

    For country field, you can use Address field and hide all fields except Country field.


    You can also shrink fields if you want to have two field in the same row. 

    Here is my demo form: 

    Feel free to clone it

    Hope this will help. Let us know if you need further assistance.