Masking the "From" address in the distance widget?

  • pvhwoo
    Asked on February 25, 2022 at 1: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!

  • Raymond JotForm Support
    Replied on February 25, 2022 at 2: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  Screenshot 10

    Or the below code to hide the field.

    #ddFrom.geoComplete.pac-target-input {

    display: none;

    }

    1645772936 621880880f3ab  Screenshot 21

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

  • pvhwoo
    Replied on February 25, 2022 at 3: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!

  • Ashwin JotForm Support
    Replied on February 25, 2022 at 3: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.