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

Anonymous
Not applicable

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

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.

Tags (1)
4 REPLIES 4
Anonymous
Not applicable

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

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.
Anonymous
Not applicable

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

Hi Justin - I thought I had read on the community that this wasn't reliable. Do you feel this is reliable across all browsers?
Anonymous
Not applicable

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

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

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

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"