Hi Sanford.
I put the following in to an email script token, then sent myself an email test that included that token. The email was delivered but there was just blank space where the token should have been.
I can't see the syntax highlighter above when creating an email script token.Iis that why it's not working for me?
Is there a software/website you use to insert the syntax highlighter before pasting it in to the email script token?
Thanks again for your support. It feels like I'm very close to being able to do this.
#set( $random = $math.random(0,3) )
#set( $linkText = {
0 : 'QS runs a number of global events for HE professionals, including <a href="reimagine-education.com/?utm_source=qs_b2bmarketing&utm_medium=qs_b2bmarketing" target="_blank" id="">Reimagine Education</a> and <a href="edudatasummit.com/?utm_source=qs_b2bmarketing&utm_medium=qs_b2bmarketing" target="_blank" id="">The EduData Summit</a>. <a href="qs.com/higher-education-tl-conferences/?utm_source=nurture&utm_medium=email" target="_blank" id="">Click here for more information and to view our events</a>.',
1 : 'Does your institution want to recruit more students? Check out <a href="qs.com/solutions/online-marketing/?utm_source=nurture&utm_medium=email" target="_blank" id="">QS’ online advertising</a> options or <a href="info.qs.com/2019-01-14-Advertising-Options-and-Call-Back-Request_01-Landing-Page-with-Form.html" target="_blank" id="">click here to request a call back</a> and we’ll be in touch with more information.',
2 : 'Is your institution looking for ways to differentiate from its competitors? Take a look at <a href="qs.com/solutions/research-intelligence/qs-stars/?utm_source=nurture&utm_medium=email" target="_blank" id="">QS Stars</a> or <a href="info.qs.com/2019-01-14QSStarsandCallBackRequest_01LandingPage.html" target="_blank" id="">click here to request a call back</a> and we’ll be in touch with more information.'
})
I can't see the syntax highlighter above when creating an email script token.Iis that why it's not working for me? |
The syntax highlighter is for here in the Community, not in Marketo! Click the name of the thread to open the full thread page, then when you reply you can see the Advanced Editor link at the upper right:

When you paste code without highlighting it, the Jive Community platform makes it unreadable. It needs to be in monospace (Courier) and laid out the way the syntax highlighter does it:
#set( $random = $math.random(0,3) )
#set( $linkText = {
0 : 'QS runs a number of global events for HE professionals, including <a href="https://www.reimagine-education.com/?utm_source=qs_b2bmarketing&utm_medium=qs_b2bmarketing" target="_blank" id="">Reimagine Education</a> and <a href="https://www.edudatasummit.com/?utm_source=qs_b2bmarketing&utm_medium=qs_b2bmarketing" target="_blank" id="">The EduData Summit</a>. <a href="https://www.qs.com/higher-education-tl-conferences/?utm_source=nurture&utm_medium=email" target="_blank" id="">Click here for more information and to view our events</a>.',
1 : 'Does your institution want to recruit more students? Check out <a href="https://www.qs.com/solutions/online-marketing/?utm_source=nurture&utm_medium=email" target="_blank" id="">QS’ online advertising</a> options or <a href="http://info.qs.com/2019-01-14-Advertising-Options-and-Call-Back-Request_01-Landing-Page-with-Form.html" target="_blank" id="">click here to request a call back</a> and we’ll be in touch with more information.',
2 : 'Is your institution looking for ways to differentiate from its competitors? Take a look at <a href="https://www.qs.com/solutions/research-intelligence/qs-stars/?utm_source=nurture&utm_medium=email" target="_blank" id="">QS Stars</a> or <a href="http://info.qs.com/2019-01-14QSStarsandCallBackRequest_01LandingPage.html" target="_blank" id="">click here to request a call back</a> and we’ll be in touch with more information.'
})
There's nothing actually wrong with your code, you just forgot to output anything. Add:
${linkText[$random]}