I had tried that before--entering the code exactly as you provided--but it was not rendering in the email.
I just tried again, and it worked finally.
Thank you for your help!
I believe that I am following you but not understanding how to output the new variable.
The #set is setting a new variable that removes the "Marriott -" prefix and then displays e...
Awesome, thank you!
This is the code that I entered:
#set( $valueWithoutMarriottPrefix = $lead.subPartner.replaceFirst("Marriott - ","") )
Chairman's Club
I tested using a co...
The $valueWithoutMarriottPrefix should be output between "As a" and "member" as shown in the copy below.
The{{my.Sub Partner Token Test:default=edit me}} token is what I created t...
I will circle back to my original question.
I used the code you provided, but it removed the "Marriott - Chairman's Club" content when I previewed the email using a contact's emai...
Sorry about that!
I copied/pasted your code directly into the script. It appears that the entirety of the Sub Partner name is being removed now, for some reason:
Where the toke...
Thank you Sanford.
I am seeing this error when I try to preview how the text will appear in an email.
This is how I entered the code in the email script token I created:
#set( $...
Hi Sanford,
I was able to fix the sourcing issue, but now we have a request to modify the field values.
Currently, the text appears as "Marriott - Executive," "Marriott - Presiden...
Hi Dave!
The link should work now...I just needed to approve the page:http://promos.ovstravel.com/IM---Operational-Testing-Program_SMS-Test-Landing-Page.html
One note is that I d...