URL parameter: How to prevent plus sign from being replaced with space?

  • ronshuller
    Asked on January 3, 2022 at 8:13 PM

    I have a URL that auto populates a form but every time there is a "+" as part of a text string populating a text field, the "+" is changed to a space.

    How can I stop this?

    Thanks,

    Ron

  • ronshuller
    Replied on January 3, 2022 at 8:16 PM

    By the way, the URL that is populating the form clearly has the "+" character in it. But, again the resulting text field that gets populated has every "+" character changed to a space.

  • Yau_C
    Replied on January 4, 2022 at 12:57 AM

    Hi,

    You have over 90 forms in your account.

    We can help you to check if you could provide the form-url(s). Thank you.

  • ronshuller
    Replied on January 4, 2022 at 9:03 AM

    In regards to form -> https://form.jotform.com/213645156315049

    I am trying to populate field "typeA14" with a URL.

    For the URL below to work, the plus signs "+" need to be in the URL string.

    However, the plus signs "+" are replaced by spaces when the field gets populated.

    https://form.jotform.com/213645156315049?typeA14=https://www.google.com/maps/search/8423+Reading%20Rd+Cincinnati+Ohio+45215

    Thanks


  • ronshuller
    Replied on January 4, 2022 at 9:09 AM

    I also tried replacing the plus signs with "%2B" and that also did not work.

  • Saeed Support Team Lead
    Replied on January 4, 2022 at 9:59 AM

    Hello @ronshuller,

    Thank you for providing us the additional information. I appreciate it!

    The only thing I did was clone your form and replace the '+' with {plusSign}, and it worked.

    https://form.jotform.com/220034320999959?typeA14=https://www.google.com/maps/search/8423{plusSign}Reading%20Rd{plusSign}Cincinnati{plusSign}Ohio{plusSign}45215

    OutPut:

    1641308044 61d45f8c71c41  Screenshot 10

    Do try it out and let us know how it goes.

    Regards,
    Support Team, Jotform

  • ronshuller
    Replied on January 4, 2022 at 10:04 AM

    Your a savior!

    Thanks.

    It should work. I'll let you know if I have any other issues.