Showing different fields based on the 'Enter your County' user input

  • JeffreyBaxter
    Asked on April 22, 2016 at 12:27 PM

    If their county is on a list I provide... of 40 some counties, they get an extended form to fill out. If not they get a "Sorry" notification.

    Has anyone  achieved something similar to this in JotForm?

  • Mike
    Replied on April 22, 2016 at 2:34 PM

    Please take a look at the following scenario.

    1) Add an Auto Complete field with a list of supported counties.

    Showing different fields based on the Enter your County user input Image 1 Screenshot 50

    2) Add the "sorry" message based on a Text field.

    Showing different fields based on the Enter your County user input Image 2 Screenshot 61

    3) Add a 'SHOW / HIDE FIELD' condition to show the sorry message when the county field value contains one of the unsupported counties. You will need to list unsupported county values separated by comma.

    Showing different fields based on the Enter your County user input Image 3 Screenshot 72

    Result:

    Showing different fields based on the Enter your County user input Image 4 Screenshot 83

    If you need any further assistance, please let us know.

  • Mike
    Replied on April 22, 2016 at 2:56 PM

    I missed the part about extended form to fill out, so here is a possible solution.

    4) Add a Form Collapse element with Visibility[Hidden] and Status[Open].

    Showing different fields based on the Enter your County user input Image 1 Screenshot 40

    Extended fields should be under the Form Collapse element.

    5) Add a 'SHOW / HIDE FIELD' condition to show the Form Collapse element when the county value contains one of supported counties.

    Showing different fields based on the Enter your County user input Image 2 Screenshot 51

    Result:

    Showing different fields based on the Enter your County user input Image 3 Screenshot 62