How to add conditions based on the GPS?

  • Profile Image
    Asked on April 02, 2019 at 09:02 AM

    I want that the users will fill the form based on the location they are at, we have many locations (gardens and parks) in the country, several in the same city.

    so i want to let them to have a drop-down list of locations based on their GPS signature. I've opened a google API account

    what next? 

  • Profile Image
    Answered on April 02, 2019 at 11:41 AM

    We do have different widgets you may use to get the location of your form user.

    Kindly check this link to get your Google API so that the widgets would work.

    Please give it a try and let us know if you have further questions.

  • Profile Image
    Answered on April 02, 2019 at 05:42 PM

    I think that I was misunderstood, I 've found all those widgets, fine.!!

    But I want to have a conditional question based on the GPS

    as explained in my question :let say the user is now in city A he can chose out the lists gardens 1,2,3,4

    and the second user is in city B he can choose gardens 5,6,7,8,9

    in city C gardens 13,14,15 ...etc...

    the list to choose from is based on the location.

  • Profile Image
    Answered on April 02, 2019 at 08:01 PM

    You need to add a location detector to your form. I recommend the Get visitor location widget, you can hide this widget and detect the user's location based on their IP.

    Demo form:

    I used the form calculation widget to get the value of country and city:

    You can then add show/hide conditional logic to your form based on their location.

    Guide: How to Show or Hide Fields Base on User's Answer