How to show form only to visitors located in a specific country.

  • infiniteali
    Asked on February 2, 2017 at 11:34 AM

    Receiving international submissions that we do not service. Is there a way to hide a jotform if the IP address is not located in the US?

  • David JotForm Support Manager
    Replied on February 2, 2017 at 1:19 PM

    This is possible, please follow this workaround:

    1) Click on Form Elements>>Widgets>>Type "Get Visitor Location" and add the widget.

    2) Click on the wand icon:

     

     How to show form only to visitors located in a specific country Screenshot 70

    3) Leave the country option checked only, and click on "Update widget":

    How to show form only to visitors located in a specific country Screenshot 81

    4) Then click on the gear icon and scroll down to hide the field by setting it to 'YES", and click on the save button below:

    How to show form only to visitors located in a specific country Screenshot 92

    5) Then add a Section Collapse field, and label it as you want to, in this case I have named it as "Show form"

    How to show form only to visitors located in a specific country Screenshot 103

    6) Then create the following condition:

    (Click on Settings>>Conditions>>Show/Hide Field)

    How to show form only to visitors located in a specific country Screenshot 114

    7) Finally, change the collapse settings to have the "Section Visibility" as "Visible" and the "Button Visibility" as "Hidden":

    How to show form only to visitors located in a specific country Screenshot 125

    Here is my demo form: https://form.jotform.co/60636046528861 

    Let us know if you need more help.

  • infiniteali
    Replied on February 13, 2017 at 12:49 PM

    Thanks for the reply. I tried the "Get the Location" widget but it didn't show an output like your screenshot when "update widget" was clicked. Is there another step?

     

    How to show form only to visitors located in a specific country Screenshot 20

     

     

  • David JotForm Support Manager
    Replied on February 13, 2017 at 1:40 PM

    I have removed the widget from now, and forwarded this to our back-end team. Also I made a clone version of your form in your account, so our back-end team can test with it. You will be notified via this thread when this gets fixed.

  • infiniteali
    Replied on February 14, 2017 at 12:07 PM

    The widget is working now but following the instructions didn't show a form, the demo is also blank. Resolved it with the following:

    1) Value in the Condition should be "Country: United States"

    2) The condition didn't work for me if the Get Location Widget was hidden through settings. I hid the input ID through CSS and it seems to work.

  • David JotForm Support Manager
    Replied on February 14, 2017 at 1:12 PM

    Glad to know you managed to solved it. I can see it is working as expected now. Let us know if you need anything else, we will be glad to assist you.