How to properly pass values from one form to another if input data has spaces on it?

  • dorsetholidaylets
    Asked on January 11, 2016 at 6:11 AM

    I am using the session command to allow people to complete a form later but if any text fields have a space between words in a field, the hyperlink to click on does not work as the hyperlink is only up to the space and then stops. 

    How can I stop this from happening?

  • Mike
    Replied on January 11, 2016 at 10:57 AM

    Can you please provide us with a link to the first form in question?

    I think that we should be able to help, but we will need to check the session link structure first.

  • David
    Replied on January 11, 2016 at 11:42 AM

    The link to the form is https://form.jotform.com/53442994484972 and the hyperlink is in the Autorespnder and Notifier. If someone inserts a space between words in any of the text field e.g. Team Name then the hyperlink stops at that point when it is included in an email.

    Regards

  • David JotForm Support
    Replied on January 11, 2016 at 2:17 PM

    I tested your form and indeed, if anything entered in the text boxes contains a space, the link fill the next form fails:

    How to properly pass values from one form to another if input data has spaces on it? Image 1 Screenshot 30

    How to properly pass values from one form to another if input data has spaces on it? 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:35 PM

    I am sorry that our support team members don't 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}

     

    How to properly pass values from one form to another if input data has spaces on it? Image 1 Screenshot 20