Saving dropdown data

Hi…

When submitting a form, it’s saving the values from my dropdown. Can I save the label instead?

I ask because I’m using the value in a calculation. I’d rather save the label unless there’s a better way to calculate.

thank you!

/kevin

Is this for the entries list or detail page, or merge tag output? Also, are you populating the available choices using custom code or an add-on?

Hi, Richard…

Thank you so much for the reply!

I’m not using any code and don’t have access to it. I’m only able to use the front end builder. I’m also not sure what you mean by entries list or details page. I’ve dragged the dropdown field to the form and bulk added my entries.

My entries are just years with a 1 or 0 after. Like this:

2024|0
2023|1

This is a screenshot in the builder:

I’m using the 0 or 1 to multiply the values of the tax forms checkboxes and display the total in the cost field.

All of this works great, but when submitting the form, I’ll get a 0 or 1 for the saved tax year when I’d like the 2024 or 2023, etc.

Does this make sense?

Thank you again!

/kevin

The entry list and detail pages are pages in the Entries area of the form admin, where you can view the form submissions. Those pages do display the selected choice value, but you can use some code to display the choice text/label instead.

See the following pages of the documentation:

The code can be added to the theme functions.php file, a custom plugin, or a code snippets plugin.

Okay, gotcha. Thank you!

Is the only way to see the values? I’ll have to reach out to our developers to see if they’re willing to make this change.

Sorry, but I should also ask if this change will also affect the emails. I’d like the labels to be included in the emails as well.