Submission token for select option value

Created on 2 August 2018, almost 6 years ago
Updated 12 May 2023, about 1 year ago

The current submission token [Webform_submission:values:?] when used for a select field returns the "option text". I need a way to return the "option value" in a token.
Example:
'#options':
10: Ten
20: Twenty
30: Thirty
40: Forty
50: Fifty

if the second item is selected to return the value "20" not "Twenty"

✨ Feature request
Status

Closed: works as designed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Drupal Duppy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States fredonia_webteam

    #3 does solve the issue - when using the select type. If using autocomplete, it does not work. Only reason I can see is because the autocomplete requires textual input rather than selecting an option, it only sees the field as text, not as the options. I got around this issue by using the select Element settings Type with jQuery Select2.

Production build 0.69.0 2024