Is it possible to trigger emails based on user location?

  • Kyle Menard
    Asked on June 9, 2020 at 5:10 PM

    I am interested in utilizing the geo location widget. But I have questions about its integration and usage with this form:

    https://form.jotform.com/81718113522147


    i would like geo location to identify the address while someone is using this form on their mobile device and based on their location a conditional response could trigger a particular selection.


    would this be possible?

  • Kevin Support Team Lead
    Replied on June 9, 2020 at 10:31 PM

    I have been performing some tests with the current widgets we have, I found that only these widgets will trigger conditions:

    https://www.jotform.com/widgets/get-visitor-location

    https://www.jotform.com/widgets/geolocation

    You may add the widgets to your form, configure them and perform some tests to see how they retrieve the location, you may then set up conditions according to the location, this guide will provide you more details about the show/hide conditions: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer 

    I hope this helps. 

  • menardk2
    Replied on June 9, 2020 at 11:07 PM

    I see the geolocation requires some kind of code or key from google.

    what does that mean?


    also...I’m not seeing how the geolocation will display a location that can trigger a conditional response that’s useable.


    id like the geo location widget to be able to automatically select a predetermined location from my list of “locations” on the JotForm I referenced in my original question.


    can you elaborate?

  • Kevin Support Team Lead
    Replied on June 10, 2020 at 12:42 AM

    I see the geolocation requires some kind of code or key from google.

    what does that mean?

    The widgets are based on Google Maps thus the widgets require the Google Maps API key, on the widget wizard you will find the instructions about how to get this:

    15917635432020 06 09 22h21 19 Screenshot 10

    also...I’m not seeing how the geolocation will display a location that can trigger a conditional response that’s useable.

    The Geolocation widget will capture the data in the back-end, the data can be seen on the submissions page or emails. 

    Now, you may capture the widget output using a Form Calculation widget, simply add the widget to your form and include the Geolocation to this as text, example:

    15917637952020 06 09 22h35 52 Screenshot 21

    id like the geo location widget to be able to automatically select a predetermined location from my list of “locations” on the JotForm I referenced in my original question.

    You can indeed set up conditions to select an option in a dropdown, you will need to set up the condition to insert the option text in the field, this guide will help you to set up this kind of condition: https://www.jotform.com/help/268-How-to-Insert-Text-or-Calculation-into-a-Field-Using-Conditional-Logic 

    Here's an example with a cloned version of your form: https://form.jotform.com/201611008602943

    If you move the location to the USA you will see the option selecting automatically in the dropdown. 

    Here's the condition I have used: 

    15917641052020 06 09 22h41 15 Screenshot 32

    Kindly give it a try so you can see ow it works. 

  • Kyle Menard
    Replied on June 10, 2020 at 3:31 AM

    What if I have multiple locations within a geographical location...with several miles separating “locations” that I want to have calculated as an output “location”. Would this be possible?

  • Ivaylo JotForm Support
    Replied on June 10, 2020 at 8:11 AM

    Unfortunately, there is no widget, which can add multiple locations. What you can do is just add multiple Location Coordinates widgets and add assign a short text box to each widget. 

    You can also create a conditional rule that will ask your clients if they want to add more location, so basically your other Location Coordinates widgets will be hidden unless they click on a button to add more location.

  • menardk2
    Replied on June 10, 2020 at 9:06 AM

    I’m not sure you fully understood my question.

  • Ivaylo JotForm Support
    Replied on June 10, 2020 at 10:23 AM

    Can you please explain your question a bit more in detail and we will try to help?

    Please try to be more descriptive.

    Looking forward to your response.

  • menardk2
    Replied on June 10, 2020 at 10:24 AM

    Is there a better way to discuss this subject or is posting to this message board the only way to trouble shoot problems?

  • Lorenz JotForm Support
    Replied on June 10, 2020 at 11:44 AM

    We only provide support via email and forum. We can continue troubleshooting on this thread instead, since the troubleshooting seems to make progress. 

    With regard to your last question, please provide us more details about it, so we can advise if something like that can be done or not.