SOLVED

Re: Email Script $ for tokens

Go to solution
Paul_Johnson
Level 5

Email Script $ for tokens

I have a handful of custom fields I need dollar signs put before in an email I'm sending out. I'm having a hard time making an email script that will put the dollar sign before the number.

The field is below. Any help would be much appreciated!

${lead.invoice1due}

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Nicholas_Manojl
Level 9

Re: Email Script $ for tokens

I think you're referring to "escaping", which means that you don't want the "$" to be swallowed by the Velocity engine. In this case, I don't think you need to escape the $ symbol.

But if for some reason this isn't working:

<p>Your next invoice is $${lead.invoice1due}</p>

You could try this:

#set ($d = "$")

<p>Your next invoice is $d${lead.invoice1due}</p>

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Re: Email Script $ for tokens

I think you can just select the field you want from the right hand tree and it will automatically have the dollar sign in from of it

Paul_Johnson
Level 5

Re: Email Script $ for tokens

Sorry Jamie,

What do you mean the right hand tree?

SanfordWhiteman
Level 10 - Community Moderator

Re: Email Script $ for tokens

Referring to the treeview on the right side of the Email Script Editor, where you choose which objects to pass to the script.

Nicholas_Manojl
Level 9

Re: Email Script $ for tokens

I think you're referring to "escaping", which means that you don't want the "$" to be swallowed by the Velocity engine. In this case, I don't think you need to escape the $ symbol.

But if for some reason this isn't working:

<p>Your next invoice is $${lead.invoice1due}</p>

You could try this:

#set ($d = "$")

<p>Your next invoice is $d${lead.invoice1due}</p>