Alert email not reflecting form input | Community
Skip to main content
Level 2
Oct 12, 2017 5:53 AM UTC
Solved

Alert email not reflecting form input

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.
sdutoit-2Accepted solution
Level 2
Oct 12, 2017 11:57 PM UTC

@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 replies

SanfordWhiteman
Level 10
Oct 12, 2017 6:09 AM UTC

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

Translate
sdutoit-2AuthorAccepted solution
Level 2
Oct 12, 2017 11:57 PM UTC

@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]}

Translate
SanfordWhiteman
Level 10
Oct 13, 2017 12:17 AM UTC

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).

Translate