Masking the "From" address in the distance widget?

  • Profile Image
    pvhwoo
    Asked on February 25, 2022 at 01:29 AM

    Hi,

    Is there a way to (1) prefill the "Start from" address with a URL passing variable

    and (2) masking it with *** or ###... (or perhaps better still make it hidden) ?

    Thanks!

  • Profile Image
    Raymond
    Answered on February 25, 2022 at 02:10 AM

    Hi @pvhwoo,

    Thanks for reaching out!

    Is there a way to (1) prefill the "Start from" address with a URL passing variable

    In order for us to understand the question better, could you provide an example or a bit more about your workflow?

    (2) masking it with *** or ###... (or perhaps better still make it hidden) ?

    I have cloned your form and made a demo below. You can use the below code to mask the "From:" input field

    #ddFrom.geoComplete.pac-target-input {

    text-security: disc;

    -webkit-text-security: disc;

    -moz-text-security: disc;

    }


    1645772885_6218805514b0c_

    Or the below code to hide the field.

    #ddFrom.geoComplete.pac-target-input {

    display: none;

    }

    1645772936_621880880f3ab_

    I hope that helps! We'll wait to hear back for more information on your first question.

  • Profile Image
    pvhwoo
    Answered on February 25, 2022 at 03:09 AM

    Hi Raymond,

    Thanks a lot. That should work for us.

    Another quick question:

    For the "From" address, what would be the label name & id.

    I can see one that reads "pleaseenter /##input_29" (unique name / id). Are they tied to the From input box?

    Is it possible to pass a URL variable to the "From" input box?

    Appreciate your help on the above. Thanks!

  • Profile Image
    Ashwin
    Answered on February 25, 2022 at 03:29 AM

    I did check your form "Bid Dish entry" and found that the name of the from field is "#ddFrom.geoComplete.pac-target-input". The ID of the field is "ddFrom".

    Is it possible to pass a URL variable to the "From" input box?

    Unfortunately, no, it is currently not possible to populate the field of "Driving Distance" widget.

    Hope this helps.

    Do get back to us if you have any questions.