Block foreign countries from accessing the form

  • steve.fairbrother
    Asked on October 11, 2021 at 1:29 PM

    Hi,

    Our charity only supports Victoria and surrounding area, but I see from Form Analytics that there are many foreign countries viewing it. See image.

    Is there a way to block that?

    Jotform Thread 3418963 Screenshot
  • Michal_S Jotform Support
    Replied on October 11, 2021 at 3:30 PM

    Hello!

    Yes, it is possible to block other countries from filling out the form and submitting it.

    However, they will still be able to view the form - it will count as a view in your Form Analytics.

    If you'd just like to restrict them from submitting and viewing the form fields, then this will work for you. If you'd like them to be unable to open the form at all, then unfortunately that is not possible.

    If just restricting submission is enough, you'll need:

    • A Paragraph to show a message that the form is unavailable in their country

    • Get Visitor Location widget to determine user location

    • A Show/Hide Condition that will hide/show fields depending on the information present in the Get Visitor Location widget

    Add the widget and the Paragraph to the form, then add a condition that shows the message and hides the rest of the form when the Get Visitor Location does not contain Canada:

    1633980581 616490a5d9055 1 Screenshot 10

    Hopefully, that suits your needs,

    Thank you!

  • steve.fairbrother
    Replied on October 11, 2021 at 3:32 PM

    Thanks