# Access Label and Value of variable prompt type "Dropdown Select"

**URL:** https://www.finalbuilder.com/forums/t/access-label-and-value-of-variable-prompt-type-dropdown-select/7008
**Category:** Discussion
**Created:** [March 18, 2021, 8:34am UTC](https://www.finalbuilder.com/forums/t/access-label-and-value-of-variable-prompt-type-dropdown-select/7008 "2021-03-18T08:34:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)
#### Post date: [March 18, 2021, 8:34am UTC](https://www.finalbuilder.com/forums/t/access-label-and-value-of-variable-prompt-type-dropdown-select/7008/1 "2021-03-18T08:34:43Z")

</div>

Hi,

version 1.9.2.573 introduced “The Options list for Dropdown Select and Checkbox Select variable prompt types can now be split into Labels and Values.”. I had a use case for this right away. Now, if i query the variable such as “%Mode%” it will give me the value. However, i wanted to add the caption to the log. There seems to be no such option though. The logical step was to try “%Mode.Label%”, which would match “%Mode.Value%”. That is not supported though. Any other ideas?

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [March 18, 2021, 8:56am UTC](https://www.finalbuilder.com/forums/t/access-label-and-value-of-variable-prompt-type-dropdown-select/7008/2 "2021-03-18T08:56:31Z")

</div>

Hi Thomas,

Sorry, the label is not available - only the value is stored. Variables don’t currently have properties and extending the expression engine for variables would be a major piece of work that we cannot prioritise at the moment.

As a workaround, you could use two list variables: one for the label and one for the value as described in option 2 of this post: [Variable dictionary / map? populate value based on selected keys in form?](https://www.finalbuilder.com/forums/t/variable-dictionary-map-populate-value-based-on-selected-keys-in-form/6994/2).

Alternatively, add the label to the start of each value with a separator e.g. Label:Value, and use the Split function to extract the label `$Utils.GetString(%Mode%).Split(":").First()$` and the value `$Utils.GetString(%Mode%).Split(":").Last()$`.

---

<div class="post-metadata">

### Author: ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)
#### Post date: [March 18, 2021, 9:29am UTC](https://www.finalbuilder.com/forums/t/access-label-and-value-of-variable-prompt-type-dropdown-select/7008/3 "2021-03-18T09:29:23Z")

</div>

Hi Dave,

thanks. I’ve added some simple if statements and some redundant text log actions. Not smart, but it’ll do. 🙂
