Skip to main content
March 12, 2015
Question

Change Data Value - can you change a - to a space?

  • March 12, 2015
  • 4 replies
  • 1064 views

Hi all,

I am using URL paramaters to pass hidden fields in my form. One would be source=Social Media.

I know I shouldn't have the space and I Know I could do source=social-meda. However, I want to keep my data uniform and I would like it to be "social media"

I know I can do If lead source= social-meda, change value to social media.

I dont want to create a constraint for every phrase of words with a dash in it. Is there a way to replace the dash with as pace?
 

Or I'm curious what others do in this type of instance.

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

March 12, 2015
Hi Em, Replace your dashes with %20. It encodes a space in the URL but will translate into friendly English inside Marketo. Best of both worlds.
March 12, 2015
Hi Justin - I thought I had read on the community that this wasn't reliable. Do you feel this is reliable across all browsers?
March 12, 2015
Hmm. It has worked reliably for us for years now.

If there are red flags with this method, I am not aware of them.

As always do your own testing to be sure!

http://www.w3schools.com/tags/ref_urlencode.asp
Dory_Viscoglio
Level 10
March 13, 2015
An alternative to this if you find the %20 to be unreliable would be a smart campaign that would maybe run nightly or weekly that would have a smart list of "source is social-media", and a flow step of "change data value: source to Social Media"