# Variable W/Dropdown select prompt (Label:Value) - initialized with label instead of value when triggered

**URL:** https://www.finalbuilder.com/forums/t/variable-w-dropdown-select-prompt-label-value-initialized-with-label-instead-of-value-when-triggered/7293
**Category:** Bugs
**Tags:** continua-ci
**Created:** [October 24, 2022, 11:22am UTC](https://www.finalbuilder.com/forums/t/variable-w-dropdown-select-prompt-label-value-initialized-with-label-instead-of-value-when-triggered/7293 "2022-10-24T11:22:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ktopaz](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/ktopaz/32/2390_2.png) [@ktopaz](https://www.finalbuilder.com/forums/u/ktopaz)
#### Post date: [October 24, 2022, 11:22am UTC](https://www.finalbuilder.com/forums/t/variable-w-dropdown-select-prompt-label-value-initialized-with-label-instead-of-value-when-triggered/7293/1 "2022-10-24T11:22:52Z")

</div>

Hi Guys,

Continua 1.9.2.1011

A configuration has a variable with a drop down select prompt - using labels and values.  
Initial Value is one of the labels.

When triggering the build manually with the play button - the variable’s value is updated with the label’s matching value as expected.  
But when triggering the build with a trigger (periodic for example) - the variable’s value is NOT updated - and it remains with its initial value (the label string, not the value string).

Can you please take a look and correct this if possible?  
Thanks!

---

<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: [October 24, 2022, 10:54pm UTC](https://www.finalbuilder.com/forums/t/variable-w-dropdown-select-prompt-label-value-initialized-with-label-instead-of-value-when-triggered/7293/2 "2022-10-24T22:54:12Z")

</div>

Hi Arik,

We tested this today and it appears to be working correctly. If a prompt is not shown, then the variable is initialised with the value in the Initial Value field. Note that this is not an “Initial Label” field - if you enter a label name in the Initial Value then it will be used as the initial value of the variable without any mapping.

---

<div class="post-metadata">

### Author: ![ktopaz](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/ktopaz/32/2390_2.png) [@ktopaz](https://www.finalbuilder.com/forums/u/ktopaz)
#### Post date: [October 25, 2022, 5:42am UTC](https://www.finalbuilder.com/forums/t/variable-w-dropdown-select-prompt-label-value-initialized-with-label-instead-of-value-when-triggered/7293/3 "2022-10-25T05:42:23Z")

</div>

This indeed is not an “Initial Label” field, however please consider that whatever this field is called - the value inside of it is used to populate the prompt.  
Since I can’t maintain two initial values (for Label and for Value) I now must choose between:

- Holding a “Label string” in the initial value field (for the sake of having the prompt pre-select the default label and display it nicely in the form for the users to see)
- Holding a “Value string” in the initial value field for cases when the configuration is triggered automatically without prompting. (which makes the prompt display the value, not the label - when running it manually)

How about splitting the initial variable value option to 2 input fields Label:Value in such use cases?  
Or at least changing it so it will become “Initial Label” indeed, and the initial value will be determined by the initial co-responding label?

---

<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: [October 25, 2022, 5:49am UTC](https://www.finalbuilder.com/forums/t/variable-w-dropdown-select-prompt-label-value-initialized-with-label-instead-of-value-when-triggered/7293/4 "2022-10-25T05:49:59Z")

</div>

The prompt is pre-selected based on the value not the label. e.g.

With a variable defined as:

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/707e16074dcd2e373c181dca411950fc35577475.png)

The prompt shows as:

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/7684d8d0f3657ee2c21f62f59c2876f61fe52bd5.png)

---

<div class="post-metadata">

### Author: ![ktopaz](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/ktopaz/32/2390_2.png) [@ktopaz](https://www.finalbuilder.com/forums/u/ktopaz)
#### Post date: [October 25, 2022, 11:21am UTC](https://www.finalbuilder.com/forums/t/variable-w-dropdown-select-prompt-label-value-initialized-with-label-instead-of-value-when-triggered/7293/5 "2022-10-25T11:21:07Z")

</div>

Thank you! I was not aware that prompt is pre-selected based on the value and displays the matching label! This resolves the “issue” 🙂  
Thanks again Dave!
