Alert email not reflecting form input | Community
Skip to main content
New Participant
October 12, 2017
Solved

Alert email not reflecting form input

  • October 12, 2017
  • 1 reply
  • 2714 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by 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]}

1 reply

SanfordWhiteman
New Participant
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-2AuthorAccepted solution
New Participant
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
New Participant
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).