Separate Values can be used to display an option label that is different from the saved value. For example, if your user selects Black t-shirt, you can store the value as black t-shirt $25.00. This is an option for Checkbox, Radio, and Dropdown fields.
Enabling Separate Values
Follow the steps below if you would like to enable separate values for a Checkbox, Radio, or Dropdown field.
- Go into edit the field that will be using separate values.
- Check the Use separate values box in the Field Options.
- Modify your Saved Value column so it is distinct from the Option Label column. For example, you may set an option label to Black t-shirt and set the saved value as black t-shirt $25.00.
- Each saved value must be unique or you will have no way of knowing which option a user selected. If you would like to use the same saved value for multiple options, such as a price or a number, you can add unique text in front of the number or price. For example, you could set Blue - 5 and Black - 5 as two unique saved values. If you are including this field in a numeric calculation, the preceding text will be ignored.
- If you would like to show the saved value in an email, View, or confirmation message use the following shortcode where x is your field ID/key.
[x show="value"]
Bulk Editing Separate Values
When bulk editing separate values, if you simply type Option 1 on a single line, then Option 1 will be saved as both the option label and the saved value.
Alternatively, if you type in Option 1 | This is the saved option, then Option 1 will be the option label and This is the saved option will be saved value.
Display Separate Values
Display separate values submitted in a Checkbox, Radio Button, or Dropdown fields in a form's confirmation message, email, or View.
- Display option label: Display the Option Label submitted in a checkbox, radio button, or dropdown field.
[x]
Replace x with the ID or key of the Checkbox, Radio Button, or Dropdown field.
- Display saved value: Display the Saved Value submitted in a checkbox, radio button, or dropdown field.
[x show="value"]
Replace x with the ID or key of the Checkbox, Radio Button, or Dropdown field.
Display Saved Value as Currency
Use the [frm-math] shortcode to display the number in a saved value as currency and determine how many decimal places should be included.