Is it possible to restrict acceptable addresses with the Driving Distance widget?

  • OndaGuey
    Asked on November 13, 2018 at 2:22 PM

    Perhaps by creating the zone on your map that you provide the api for? I am going to look further into it, but maybe there is a way to create a map with a geocoded zone, that is told to neglect everything but the zone.

  • Richie JotForm Support
    Replied on November 13, 2018 at 4:04 PM

    Unfortunately, there is no option to restrict the address input in the Driving distance widget.

    Is it possible to restrict acceptable addresses with the Driving Distance widget? Image 1 Screenshot 20

    Conditions will also not work on the widget.

    Hope this information helps.

    If you need further assistance, let us know.


  • OndaGuey
    Replied on November 13, 2018 at 7:24 PM

    How did you get it to say Invalid result like that? Is that just because test is not an address at all? I would like that to happen for all addresses outside of Tucson, AZ

  • OndaGuey
    Replied on November 13, 2018 at 7:26 PM

    I thought maybe a condition such as "if 'where is your cargo going?' does not contain 'Tucson' then populate calculation 'Out of Zone' in 'where is your cargo going?' field"

    Is there no way to make something like this work?

  • Kiran Support Team Lead
    Replied on November 13, 2018 at 9:40 PM

    How did you get it to say Invalid result like that?

    The error is related to Google API limits which is displayed due to the overliimit of the API key used on the form.

    Is there no way to make something like this work?

    Unfortunately, the answer is no. Since the driving widgets works based on the Google search results and the result sent by the widget is only the distance number, it is not possible to set any conditions with the widget.

    Hope this information helps!