Skip to main content
Level 2
October 12, 2017
已解决

Alert email not reflecting form input

  • October 12, 2017
  • 5回复
  • 2733查看

I am creating a form using the "select" field type with two options:
Do you have a relationship manager "Yes" "No"

When they submit I have set up an alert email to my inbox using a token to pull through
Select your relationship manager: {{lead.Select your relationship manager:default=None}}


Instead of pulling through "Yes" "No", yes is pulling through a 1 and no is pulling through a blank. Is there a way to adjust this?

Let me know thanks

此主题已关闭回复。
最佳答案由 sdutoit-2

@Sanford Whiteman​ thanks for your help. Still not working for me though - do you think its because my field name contains spaces?

#set( $friendlyBoolean = {    

"1" : "yes",   

"" : "No"  

} )  

${friendlyBoolean[$lead.Do you have a relationship manager]}

5回复

SanfordWhiteman
Level 10
October 12, 2017

You need a Velocity (Email Script) token to display different values. See my code here: https://nation.marketo.com/message/172040-re-form-submission-alert-creates-new-lead#comment-172040

sdutoit-2作者回答
Level 2
October 12, 2017

@Sanford Whiteman​ thanks for your help. Still not working for me though - do you think its because my field name contains spaces?

#set( $friendlyBoolean = {    

"1" : "yes",   

"" : "No"  

} )  

${friendlyBoolean[$lead.Do you have a relationship manager]}

SanfordWhiteman
Level 10
October 13, 2017

When you click and drag your field onto the Script Editor from the tree on the right side, you'll see what its Velocity name is (spaces will be removed).