Email script for booelan field with velocity code - how to do?
Hi
As a very new person to marketo I need a some help with this. I am trying to create a small email script so that the value true is rpelaced with yes in the email and the value blank is replaced with No. A token is created on the program and I select email token. Then I insert the following
# if (${lead.Customer_expect_to_be_contacted_by_Sales__c}== "true" )
Yes
# else
No
# END
Then I insert the token into my email, but when I test it it dosent insert the value Yes/No but the code. It is like it treats the code as plain text or something. The result in the meail lokks like this # if (1== "true" ) Yes # else No # END.
I found this example on the forum
#if(${lead.fieldname} == "fieldvalue1")
Email text here
#elseif (${lead.fieldname} == "fieldvalue2")
Email text here
#else
Email text here
#end
Is there somebody who can tell me what I am doing wrong.