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

  • Profile Image
    dorsetholidaylets
    Asked on January 11, 2016 at 06: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?

  • Profile Image
    Mike
    Answered 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.

  • Profile Image
    David  
    Answered 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

  • Profile Image
    david
    Answered on January 11, 2016 at 02: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:

    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.

  • Profile Image
    aytekin
    Answered on January 20, 2016 at 05: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}