Can we target 'Text Only' in Script Tokens? | Community
Skip to main content
December 8, 2015
Solved

Can we target 'Text Only' in Script Tokens?

  • December 8, 2015
  • 2 replies
  • 3240 views

I'm writing a simple script token to write in the appropriate street address dependent on region. The only issue I'm having is that the HTML version requires some non-breaking spaces to prevent some ugly wrapping in Postcodes etc. It would be nice to be able to differentiate HTML & Text Only within the script rather than set up 2 script tokens. Is this possible?

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

Hi Alan,

I don't believe there is any way to do this.  The token will populate the same way no matter where you use it, and there isn't a way to tell the system in which version of the email it's being used.

John

2 replies

Justin_Cooperm2
New Participant
December 9, 2015

Well, you can make an email script token and then insert it only in the Text side of the email. You can also then make the email text only if you want to. Completely up to you!

April 6, 2016

@Justin Cooperman​ - is that really so? From what I experience and have heard from Marketo Support, email script tokens don't work at all in the text side of emails. For our specific use case that is especially problematic with regards to the subject line - which doesn't populate at all on the text side if generated through a script token. Or am I missing something?

Justin_Cooperm2
New Participant
April 6, 2016

I just tested it and it works fine in the text side.

JohnCl9Accepted solution
Employee
December 8, 2015

Hi Alan,

I don't believe there is any way to do this.  The token will populate the same way no matter where you use it, and there isn't a way to tell the system in which version of the email it's being used.

John

December 10, 2015

Thanks John,

That seems to confirm my suspicions. Looks like a feature request to me :-)

... if they could just move where the token is evaluated!

A

PS I'll be using 2 tokens until then!

January 6, 2016

Just to wrap this up. I've marked John's answer as correct. I submitted this as an idea and got the 'WE LIKE IT, BUT IT IS COMPLICATED' flag.