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.
Is it possible to make the state and zip code optional in the address?Asked by leana on May 28, 2014 at 07: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?
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.