### [How to Add Field Values for Dropdown, Checkboxes, and Multiple Choice Fields](https://wpforms.com/developers/add-field-values-for-dropdown-checkboxes-and-multiple-choice-fields/)

**Published:** February 13, 2020
**Author:** Editorial Team

**Excerpt:** This tutorial will show you how to add additional field values to your dropdown, checkbox, and multiple-choice form fields. 

**Content:**

Are you interested in incorporating field values for elements such as **Dropdown**, **Checkbox**, and **Multiple Choice** fields? By default, these fields solely allow for labeling each option. However, in this tutorial, we’ll demonstrate how to append an extra field to accommodate values alongside labels.

## Adding the snippet to add field values

To begin, you’ll need to add this snippet to your site. If you need assistance in how to add snippets to your site, [please see this tutorial](https://wpforms.com/developers/how-to-add-custom-php-or-javascript-for-wpforms/ "How to Add Custom PHP or JavaScript for WPForms").

```

/**
 * Show values in Dropdown, checkboxes, and Multiple Choice.
 *
 * @link https://wpforms.com/developers/add-field-values-for-dropdown-checkboxes-and-multiple-choice-fields/
 */
 
add_filter( 'wpforms_fields_show_options_setting', '__return_true' );
```

## Creating your form

Next, you’ll need to create your form and add your **Dropdown**, **Checkbox**, or **Multiple Choice** form field. In this tutorial, we’re adding a dropdown field of color choices.

![](https://wpforms.com/wp-content/uploads/2020/02/wpforms-add-field-values-form.jpg)

If you need help in creating your form, [please see this documentation](https://wpforms.com/docs/creating-first-form/ "How to Create Your First Form").

## Enabling the Show Value setting in the form builder

Once you’ve added your **Dropdown**, **Checkbox** or **Multiple Choice** form field and entered your choice options, click on the **Advanced** tab and click the toggle to **Show Values** and click **Save** on the form to save the changes.

![click the toggle to Show Values on the Advnaced tab of the form field](https://wpforms.com/wp-content/uploads/2020/02/wpforms-enable-show-values.jpg)

When you go back to the **General** tab, you’ll see you can add additional field values to each option in the dropdown and re-save the form.

![add field values to each option and save the form again](https://wpforms.com/wp-content/uploads/2020/02/wpforms-enter-second-value.jpg)

While the raw value is stored in the database entry, it’s not included in the `{all_fields}` Smart Tag for email notifications, when viewing the entry in WordPress admin, or within CSV exports.

To display the value for a field in either a form’s confirmation message or notification email, you’ll need to use the following [Smart Tag](https://wpforms.com/docs/how-to-use-smart-tags-in-wpforms/ "How to Use Smart Tags in WPForms") format:

`{field_value_id="X"}`

Just replace the **X** with the field ID, and this Smart Tag will automatically pull the value for any selected option(s) in that field. For assistance in finding your field ID, [please review this tutorial](https://wpforms.com/developers/how-to-locate-form-id-and-field-id/ "How to Locate Form ID and Field ID").

And that’s it! You’ve now successfully added an additional field to hold values in your **Dropdown**, **Checkboxes**, and **Multiple Choice** form fields. Would you like to process Smart Tags in the **Checkbox** field label? Our article on [How to Process Smart Tags in Checkbox Labels](https://wpforms.com/developers/process-smart-tags-in-checkbox-labels/ "How to Process Smart Tags in Checkbox Labels") will walk you through how to achieve this.

## Filter Reference

[wpforms\_fields\_show\_options\_setting](https://wpforms.com/developers/wpforms_fields_show_options_setting/ "Using the wpforms_fields_show_options_setting filter")

## FAQ

#### Q: Can I bulk add options to the Show Values?

**A:** Unfortunately no. When using the Show Values option for these fields, you’ll need to manually set your options for each.

**Categories:** Fields

**Tags:** PHP

---

