Is it possible to make the state and zip code optional in the address?

  • leana
    Asked on May 28, 2014 at 7:40 PM

    Our form will be collecting data from people from around the globe who may or may not have a state or zip code/postal code.  Is there any way to make those sections optional, but the whole address form required?

  • Ashwin JotForm Support
    Replied on May 28, 2014 at 9:52 PM

    Hello leana,

    Unfortunately, it is not possible to just make the state and/or zip code not mandatory. Address field is actually a control which consists of several fields.

    The only workaround seems to be to create your own address field by adding textboxes and dropdown fields from the form tools.

    Another way to achieve your requirement is to inject custom css code to hide the field which you do not want to show from the address fields. You can then add separate form field and mark it as non required. The following guide should help you hide fields from address field:  http://www.jotform.com/help/200-How-To-Remove-Sub-Fields-From-Full-Address-Field

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!