How can I filter form users by zip code?

  • benpearson
    Asked on March 14, 2016 at 1:34 PM

    If a user enters a zip code for example 55405.  I would like the form to proceed to the next page.  If the user enters a zip code that is not in our service area, I would like to display a disclaimer that we do not currently service your area.   Does anyone know how to accomplish this?

  • Jan
    Replied on March 14, 2016 at 2:14 PM

    This is possible with JotForm by using conditions. Please check this demo form. You can clone it if you like.

    How can I filter form users by zip code? Image 1 Screenshot 40

    I used the Skip to a Page condition in order to achieve this. As you can see, if the Zip Code is Equal to the value of 55405, it will go to page 2 once you click the next button.

    How can I filter form users by zip code? Image 2 Screenshot 51

    If it is not equal to 55405, it will jump to page 3.

    How can I filter form users by zip code? Image 3 Screenshot 62

    Related guide: Smart-Forms-Using-Conditional-Logic

    Hope that helps. Thank you.

     

  • benpearson
    Replied on March 14, 2016 at 2:17 PM

    How can you not display the final page 3 if the zip code conition is met when submitting the form?

  • Kevin Support Team Lead
    Replied on March 14, 2016 at 3:08 PM

    I think you are referring to this page where a message is displayed indicating that the zip code is invalid even when the entered code is correct. 

    How can I filter form users by zip code? Image 1 Screenshot 40

    If so, you will need to add a condition to your form, the condition should look like this:

    How can I filter form users by zip code? Image 2 Screenshot 51

     

    This should be the result:

    How can I filter form users by zip code? Image 3 Screenshot 62Here is my sample form with the update: https://form.jotform.com/60736118180957

  • EMYEstetica
    Replied on November 15, 2016 at 3:44 PM

    Nice. what about if you have more than one Zipcode. I say in bulk with all the zipcode listing?
  • Kevin Support Team Lead
    Replied on November 15, 2016 at 3:57 PM

    @EMYEstetica,

    In order to assist you better I have moved your question to another thread, it can be found here: https://www.jotform.com/answers/990816 

    We will assist you on that thread as soon as possible.