How to lock the From location input of Driving distance widget

  • Profile Image
    Asked on April 16, 2017 at 06:15 PM

    I received help creating a form that will calculate a driving distance and cost using the "Driving Distance Widget" but I need to lock the "From" location if that is possible.


    here is the sample form that was built



  • Profile Image
    Answered on April 16, 2017 at 06:50 PM

    Currently it is not possible to disable only the 'From' location of the Driving Distance widget.

    But what you may want to try instead to prevent the user from using the input box and altering the default From location you have set, is to hide the input box.

    You can do it by adding this custom CSS code on the widget.


    visibility : hidden;




    You can test it working on my test form.

    I hope this help. Let us know if you need further assistance.