PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How to force spaces in parameter variable from one form to another

  1. Here's the issue,

    I have a user fill out a form, one field is called "Title" and will likely have spaces.
    I take the users inputs and generate a concatenated link to prefill out another form.

    I'd like the spaces to be respected in that second form Title field, the one that get's the variables passed to it. Right now I have it set up like this (simplified fields)...

    Form 1
    Name
    Title

    I use the notification e-mail to generate a link like this for Form 2

    http://URL OF FORM 2 THAT I'VE SET PARAMETERS UP ON/?name={MERGE TAG FOR NAME}&title={MERGE TAG FOR TITLE}

    ...but the merge tag for the title will have spaces, which will get stripped out or cause an issue if someone actually uses that link, how can I account for or fix that?

    -r

    Posted 12 years ago on Wednesday July 25, 2012 | Permalink
  2. Do you have a URL where this can be witnessed?

    Also, can you post your user notification to pastebin.com or pastie.org so we can see what that looks like? Also, do you have the "Disable Auto-formatting " checkbox checked or not? I wonder if you can craft the HTML notification yourself and then disable auto-formatting so no processing is done on it. Maybe the processing is stripping the spaces.

    I have other ideas if that does not work straight away.

    Posted 12 years ago on Wednesday July 25, 2012 | Permalink
  3. [Update] test this form:

    http://gravity.chrishajer.com/check-referer/

    Make sure the name you submit has spaces in it. I use that field in the user notification for a link to this form: http://gravity.chrishajer.com/pre-populate-everything/

    The space in the name is preserved and the link works fine to pre-populate the name value in the second form.

    I did check the box to disable auto-formatting in the user notification.

    I have seen some server configs affect this, but it works as expected for me.

    Posted 12 years ago on Wednesday July 25, 2012 | Permalink
  4. Nice! I'll take these for a try and post my forms/info and get back to you!

    Posted 12 years ago on Wednesday July 25, 2012 | Permalink
  5. Can you post what you link with query parameters looks like? It has a space in it?

    Posted 12 years ago on Wednesday July 25, 2012 | Permalink
  6. Hmm, so, it's working, although it wasn't earlier so I'll leave this to being a fluke or some browser issue until I hear otherwise, this link with spaces is working...which when it came through as a notification didn't earlier...seems to be good now

    http://itarsenal.com/services-shop/concierge/service-concierge-approved-service-payment/?first=BOB&last=DOE&title=AWESOME SERVICE TITLE&price=$45&email=BOBDOE@GMAIL.COM

    Thanks for the effort Chris!

    Posted 12 years ago on Wednesday July 25, 2012 | Permalink
  7. It is also dependent on the email client used, and how that client interprets and even modifies the HTML. If you look at the notification you send and compare to the source of what is received, you'll notice lots of rewriting on the other end. I have seen this a lot with Gmail. I wouldn't be surprised if it was a specific situation like that.

    Posted 12 years ago on Thursday July 26, 2012 | Permalink