Re: How to create a token for a radio button answer

Tracy_Boesken
Level 4

How to create a token for a radio button answer

I need to send an alert email with the respondent's answers.

I need to write a token for a field I created in a form that has radio button answers.

If my token name is "{{lead.PrivacyQuestion1}}" then what is the value? 

Help with token Screenshot 2021-06-24 185203.png

5 REPLIES 5
Phillip_Wild
Level 10

Re: How to create a token for a radio button answer

Hi @Tracy_Boesken ,

 

I believe a radio button will come through as a string value of what was selected - eg "Yes, I am the consumer the request is about." Of course, this would be something you can check by submitting the form and checking the profile of the submitter.

 

If you need this to look different in the email output, then you could either run a smart campaign to change the value of that field before the send, or create an email script token that manipulates the value to something more appropriate for the recipient of the email. 

Tracy_Boesken
Level 4

Re: How to create a token for a radio button answer

Hi Phillip,

Thank you for your reply. 

If my alert email has this info to fill in:

 

Hello,

The following person just completed the Privacy Data form:

Lead Details

{{SP_Send_Alert_Info:default=edit me}}

Are you submitting this request on your own behalf? {{lead.PrivacyQuestion1:default=edit me}}

Select which of the following rights you wish to exercise: {{lead.PrivacyQuestion2:default=edit me}}

 

Then how do I set up this Token?

Tracy_Boesken_1-1624585602657.png

I assume I wouldn't place the "answers" in the value because there are 2 possible answers to lead.PrivacyQuestion1 field.

Thanks,

--Tracy

 

 

 

 

SanfordWhiteman
Level 10 - Community Moderator

Re: How to create a token for a radio button answer

Tracy, the stored value will only be what the end user selects. Other options appearing on the form will not be stored in the field.
Tracy_Boesken
Level 4

Re: How to create a token for a radio button answer

Thank you both.

Support agreed I needed to add a program token at the program level so I was beating my head against the wall trying to do that. Turns out I did not need to do that at all. I had a custom field so the token already existed. The radio button "answers" fill in according to the respondent's answer.

 

So ultimately the answer to filling in the answer in the alert email is:

Are you submitting this request on your own behalf? {{lead.Privacy Data Question 1:default=edit me}}

Select which of the following rights you wish to exercise: {{lead.Privacy Data Question 2:default=edit me}}

 

which results in this:

Hello,

The following person just completed the Privacy Data form:

Are you submitting this request on your own behalf? Yes, I am the consumer the personal information is about.

Select which of the following rights you wish to exercise: Right to Know (i.e., categories of personal information)

 

--Tracy

 

SanfordWhiteman
Level 10 - Community Moderator

Re: How to create a token for a radio button answer

Too bad they led you down the wrong path. They probably assumed you wanted to output something different from the exact value, but based on the value: that requires a Velocity token.