Trouble setting up conditions for my country picker widget

  • rbmans
    Asked on August 1, 2018 at 11:49 AM

    Hi,

    I am trying to create conditions for my country picker. I want the fields in the form below the country picker not be visible when no country is chosen, but also for some specific countries eg. England, USA, Sweden, Norway, Poland (some examples). I have created two conditions but it doesn't work.

    The best solution would however be if I could just in admin panel choose what countries that should be visible?

    Any solution for either would appreciated

    /Rob

  • Richie JotForm Support
    Replied on August 1, 2018 at 1:06 PM

    I have checked your form and it seems you're in the right track with your conditions.

    You just need to add another condition to get the value of the countries to hide.

    The country picker uses a code to show/hide its country. You must use a short text entry to view this codes.

    Trouble setting up conditions for my country picker widget Image 1 Screenshot 40

    We use the condition Update/Calculate field and copy the field value of the country picker widget in to our short text entry field.

    Trouble setting up conditions for my country picker widget Image 2 Screenshot 51

    Now that we know the country picker code  for the countries, you can  add them in your condition to hide.

    Trouble setting up conditions for my country picker widget Image 3 Screenshot 62

    Sample form:https://form.jotform.com/82124859131960

    Please give it a try and let us know how it goes.

    Thank you.

  • rbmans
    Replied on August 2, 2018 at 3:46 AM

    Thanks,

    It works great!

    Just out of curiosity, Is it not possible to choose what countries to be visible from the admin panel somehow?

    Cheers Rob 

  • Victoria_K
    Replied on August 2, 2018 at 5:40 AM

    Hello Rob,

    We will answer your new question here: https://www.jotform.com/answers/1542667 

    Thank you!