Validation rule on City field in Address

  • jmurrayoppcommunities
    Asked on June 1, 2020 at 12:30 PM

    Hi,


    Is there a way to restrict the options for the City field inside of an address block?  We only want people who fill our form out to be from a particular city, but also don't want to hide the field, since we want them to visibly see that they need to be entering this particular city.

  • Carlos_C
    Replied on June 1, 2020 at 3:37 PM

    Hello,

    Thank you for your message.

    I create a demo https://form.jotform.com/201526029115950.

    If you add City 1, City 2, or City 2 the form is going to show a message and hide the rest of the form.

    This is the result:

    Validation rule on City field in Address Image 1 Screenshot 30

    You can add the following conditions: 

     Validation rule on City field in Address Image 2 Screenshot 41

    My recommendation is to clone the form and test it: How-to-Clone-an-Existing-Form-from-a-URL.

    If you need any further assistance, please let us know. We will be happy to help.