Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
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 everything that appears after that. For example, if the value for $lead.subPartner is "Marriott - Presidential," the new v...
Awesome, thank you! This is the code that I entered: #set( $valueWithoutMarriottPrefix = $lead.subPartner.replaceFirst("Marriott - ","") )Chairman's Club I tested using a contact whose Sub Partner is "Marriott - Chairman's Club". Here's what I was able to see in the email: How would I set up ...
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 to contain the script that you provided. As a {{my.Sub Partner Token Test:default=edit me}} member, you get {{lead.enrol...
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 email address, instead of just showing "Chairman's Club". For example, I entered this person in (see first screenshot below)...
Yes, there is a Sub Partner name that is just "Marriott" with no Marriott - prefix.
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 token should appear, it's showing as blank: "As a (blank) member, you get...". I only previewed contacts that have the "Marriot...
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( $valueWithoutMarriottPrefix = ${lead.subPartner}.replaceFirst("Marriott - ","") )#end Any ideas what the issue might be? Tha...
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 - Presidential," "Marriott - Chairman's Club," etc. Our team member would instead like the text to appear in emails without the "M...
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 did resize the logo on the image, but it's not ideal. It looks really small now so wondering if there's another option, li...