Passing values from one form to another breaks if a space is entered in the field

  • certipma
    Asked on January 11, 2016 at 2:45 PM

    I am facing a problem when passing the variable from on form to another or to the notifier. The URL constructor is like this:

       https://form.jotformz.com/xxxxxx?name1[last]={name2[last]}

    But some times last names are composed names such as "Van der Graff" or "De Niro" or "del Toro" etc

    The problem ist that the notifier compose link is cutting off the link

      http://www.jotform.com//?formID=xxxxxxx/?name1[last]=Van der Graff

    So, as you can see the link should be all the way thru Graff and addind the %20 space in the URL, but it is not.

    What am i doing wrong?

    Alread read:

    http://www.jotform.com/answers/701394

    http://www.jotform.com/answers/121840-How-can-you-auto-populate-a-field-with-text-from-another-form

  • David JotForm Support
    Replied on January 11, 2016 at 4:42 PM

    Hi,

    I tested one of my own forms and indeed, if anything entered in the text boxes contains a space, the link fill the next form fails:

    Passing values from one form to another breaks if a space is entered in the field Image 1 Screenshot 30

    Passing values from one form to another breaks if a space is entered in the field Image 2 Screenshot 41

    I will forward this to our developers to have a look.  The spaces should be replaced with underscores but it looks like they are not.

  • Aytekin JotForm Founder
    Replied on January 20, 2016 at 5:31 PM

    I am sorry that one of our support team members does not know that we already have this feature! 

    http://www.jotform.com/help/164-How-to-Pass-Values-to-the-Text-Area-of-a-Form-via-URL-encoding

     

    You can use the {URLENCODE:field name} to make them safe for links. Example:

    {URLENCODE:fullName}

     

    Passing values from one form to another breaks if a space is entered in the field Image 1 Screenshot 20