Driving Distance widget: enforce only valid addresses to be entered

  • Profile Image
    Asked on April 29, 2016 at 06:09 AM

    We are using the driving directions widget in order to generate the price of the job being entered. However, it does not prevent nonsense from being entered into the address fields, so it's not possible to validate the trip and therefore the price.

    Is there a way to achieve the result of enforcing that the user enter a valid start and end address?

  • Profile Image
    Answered on April 29, 2016 at 08:22 AM

    Please mark your Driving Distance widget as required, and your users should no longer be able to submit it with an invalid address. You can mark it required as shown in the following image:

    If your users try to submit the form with an invalid address while the widget is marked as required, they will receive an error like the following:

    If you need any further assistance, please let us know. We'll be happy to help.