Please Note: We are no longer using forums to facilitate standard support. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Adding a value to notifications based on the value of a field

  1. bendrucker

    Here's the simplest explanation of what I want to do. Let's say I have three people, Ben (351), John (843), and Dan (366). The number in parentheses is an ID number for the user. The form has radio buttons, labeled Ben, John, and Dan. In the admin notification, I need to display the name of the person that was selected in addition to the ID number. I know I could easily do this using values, but the issue is that in the user notification I need to display only the name. Is there any way to do this? I don't mind if it's not particularly extensible, since I only need to list a few names.

    Posted 4 years ago on Tuesday March 8, 2011 | Permalink
  2. The only way you could do this is with values and then custom notification emails and use the individual fields which output the label.

    We are changing the {All_Fields} token so that is outputs the label, not the value, for these fields. The label is supposed to be user friendly so that is what you would want to show the user. That was the intended functionality but it isn't working that way so it will in the final 1.5 release.

    Posted 4 years ago on Tuesday March 8, 2011 | Permalink
  3. bendrucker

    I'm not sure I understand your answer. If I give the labels a value, is it possible to output the label in the notification email using a different syntax?

    Posted 4 years ago on Tuesday March 8, 2011 | Permalink
  4. The {all_fields} merge code outputs the value.

    But if you output the form field merge code for the radio button by itself it should output the friendly label and not the value by default. To tell the merge code to output the value you would add :value to it.

    For example:

    {My Radio Button:1}

    That would output the label.

    {My Radio Button:1:value}

    That would output the value.

    Currently {all_fields} is outputting the value and not the label, we will fix that in the next release so it outputs the label like it should be doing.

    Posted 4 years ago on Tuesday March 8, 2011 | Permalink


Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only