PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. 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
    Member

    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 13 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 13 years ago on Tuesday March 8, 2011 | Permalink
  3. bendrucker
    Member

    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 13 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 13 years ago on Tuesday March 8, 2011 | Permalink