How to pass special characters in the Form field via the URL?

  • stormingrobots
    Asked on June 14, 2019 at 4:26 PM

    try this: 

     

    https://www.jotform.com/90644244477159?recSession=test%2b

     

    '+' == %2b

     

    but it fails to show.

     

  • John Support Team Lead
    Replied on June 14, 2019 at 7:12 PM

    I followed the link that you provided to replicate the issue. However, I saw that it is working fine on my end. Please see below screenshot for your reference:

    1560553958postdata Screenshot 10

  • stormingrobots
    Replied on June 15, 2019 at 5:48 AM

    I tested this in 5 different computer with chrome & IE  See the snapshot below. 

    1560592050junk Screenshot 10

  • roneet
    Replied on June 15, 2019 at 1:22 PM

    I was able to replicate the issue in the Chrome and Edge browser. Due to some of the limitations of the browser in getting the special characters, it does not pass to the Form fields.

    May I know how do you want to pass the special characters to the Form? Are you going to pass it via other Forms?

    If yes, then please follow this guide:

    https://www.jotform.com/help/164-Pass-Value-to-Another-Form-with-URL-Encoding

    Thanks.


  • stormingrobots
    Replied on June 17, 2019 at 8:18 AM

    You mean this: 

    https://www.jotform.com/90644244477159?recSession={URLENCODE:test%2B}


    Does not work. No, it does not work.  Yes,  passed it via the URL.. right at the moment, i simply just enter it right at the URL.

    e.g. 

    https://www.jotform.com/90644244477159?recSession=test%2B%26%2B.

    It shows as:   test  &  .



  • Richie JotForm Support
    Replied on June 17, 2019 at 8:40 AM

    This link shows the "+" sign https://www.jotform.com/90644244477159?recSession=test%2B when I viewed it on FireFox.

    How to pass special characters in the Form field via the URL? Image 1 Screenshot 20

    However, it is not showing in Chrome or Edge.

    As my colleague has explained,due to the limitations of the browser in getting the special characters, it does not pass to the Form fields.

    To clarify, do you want to pass values from one form to another? Or would you like to populate your form fields with URL parameters.

    You may check this guide:https://www.jotform.com/help/71-Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters


  • stormingrobots
    Replied on June 17, 2019 at 8:56 AM

    I have read thru the suggested link, it looks like I will have to  download form source and make changes to it. 

    Hmm.. "most" people use ie or chrome. If this does not work without changing the script generated via jotform, shouldn't it be considered as a major fix on jotform though? 

    Unless I have misunderstood.




  • Richie JotForm Support
    Replied on June 17, 2019 at 9:28 AM

    I have further testing this using the URLENCODE and it seems to be working on most of the characters except the +=%2b sign.

    Guide:https://www.jotform.com/help/164-Pass-Value-to-Another-Form-with-URL-Encoding

    You may try my cloned form https://form.jotform.com/91674067284970 and try to submit it and click on the link in the Thank you page.

    How to pass special characters in the Form field via the URL? Image 1 Screenshot 20

    Please give it a try and let us know your thoughts.

  • stormingrobots
    Replied on June 17, 2019 at 9:55 AM

    I have personally tested multiple of the entity codes as well before I posted this issue. Nothing worked. The only seemed to make this work is to download the source of the form and change the script.   So, I guess, to me,  this is not solvable unless jotform will incorporate something to accommodate that.   

  • Richie JotForm Support
    Replied on June 17, 2019 at 10:19 AM

    We can forward a feature request to our developers.

    Can you please explain further how you want the URL code to be used?

    Do you want to pass this to your phone number?

  • stormingrobots
    Replied on June 17, 2019 at 11:09 AM

    2 ways: 

    1) for now, i just need a straight forward URL href link from another html.

    2) future need is to pass it via your javascript (not now, I forsee it will be good to do in the future.)