Question T15999
Visible to All Users

Display key from Dropdown

created a year ago

when i use {name_of_dropdown_element} it will display value, but i want to display key instead.
can you suggest solution for me?

example this case (assume it have key and value)
Screenshot 2023-12-13 105414.png

Answers approved by surveyjs Support

created a year ago

Hello,
You can use the displayValue('dropdownQuestionName') function to reference a selected item's display text instead of a value.

Please let me know if you have additional questions.

Thanks