# Trouble with an input dropdown

**URL:** <https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655>\
**Category:** Need help\
**Created:** [May 14, 2022, 1:15pm UTC](https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655 "2022-05-14T13:15:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauljoneswv](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pauljoneswv](https://forum.bubble.io/u/pauljoneswv)\
**Post date:** [May 14, 2022, 1:15pm UTC](https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655/1 "2022-05-14T13:15:49Z")

</div>

I am trying to make a simple input dropdown with “yes/no” as the options. My goal is that when you click a button, the input value is saved under the database with the appropriate response.

The input field is named Dropdown Yes/No and I have entered the static values as Yes and No. When clicking the button, it only gives me “Yes” and does not read the “No” option when selected. Here is my logic for the workflow, although I have tried many alterations of this: Attendance = Dropdown Yes/No’s value is Dropdown Yes/No’s value

Does anyone know how to approach this so that I can get the workflow from the button to save the correct answer in the database?

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 14, 2022, 1:30pm UTC](https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655/2 "2022-05-14T13:30:00Z")

</div>

If you’re using static values in your dropdown, they will evaluate to texts.

I’m guessing that the value you’re trying to save is an actual ‘yes/no’ type… therefore you can’t set it with a text when it’s expecting a yes/no.

So there are a few ways to achieve this…

Perhaps the most logical is to create an option set called Yes/No, with display values of Yes and No, and a yes/no attribute for each set accordingly.

Then you can simply use the option set as the dynamic choices of the dropdown, then just refer to the dropdown’s value’s yes/no attribute in your workflow.

Another way, if you’d prefer to work with static text values, is to leave the dropdown with static values of Yes, and No, then in your workflow use the expression: Attendance = Dropdown Yes/No’s value is Yes.

(that basically means the the yes/no value of the Attendance field will be set to Yes when the dropdown’s value is Yes).

Either way will work just fine, but personally I’d use an option set.

---

<div class="post-metadata">

**Author:** ![pauljoneswv](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pauljoneswv](https://forum.bubble.io/u/pauljoneswv)\
**Post date:** [May 14, 2022, 3:21pm UTC](https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655/3 "2022-05-14T15:21:08Z")

</div>

I really appreciate your answer. I wasn’t able to get the options set to work properly because there is so much logic I need to enter so I went with option two.

Could you explain why attendance = Dropdown Yes/No value is “Yes” works? Is this like a boolean function that inputs “No” if it is set to false?

This option works for me but I am trying to understand why.

Thank you.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 14, 2022, 3:32pm UTC](https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655/4 "2022-05-14T15:32:12Z")

</div>

When setting a yes/no field in Bubble, you’re basically telling Bubble _when_ to set it to Yes…

So the Value you set needs to evaluate to a yes/no (rather like a condition does).

So, in your case, using the expression I gave in the previous post, you’re telling Bubble to set the yes/no value to Yes, when something is true - in this specific case, that _thing_ is when the dropdown’s selected value is Yes (the static text value). If that’s the case then the value will be set to Yes. If it’s not it will be set to No.

So, if a User selects Yes (the static text value) from the dropdown, then the above ‘condition’ is true (i.e. dropdown’s value _is_ Yes), so that will tell Bubble to set the yes/no value to Yes. If they select No, then the ‘condition’ (is the dropdown’s value Yes) is not true, so the value will be set to No (actually it _might_ not be set at all, I’m not certain how that works off the top of my head - you’d need to double check that it is set - and if not you might need to use a conditional action to make sure it gets set either way if it’s important to you not to have a blank value)

---

<div class="post-metadata">

**Author:** ![pauljoneswv](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@pauljoneswv](https://forum.bubble.io/u/pauljoneswv)\
**Post date:** [May 14, 2022, 4:01pm UTC](https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655/5 "2022-05-14T16:01:32Z")

</div>

Thank you this makes sense.

---

<div class="post-metadata">

**Author:** ![mafqud.co](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mafqud.co](https://forum.bubble.io/u/mafqud.co)\
**Post date:** [May 23, 2022, 3:11pm UTC](https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655/6 "2022-05-23T15:11:02Z")

</div>

Thank you, I spend so much time searching for a solution, this was the simplest answer for me.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 23, 2022, 1:16pm UTC](https://forum.bubble.io/t/trouble-with-an-input-dropdown/206655/7 "2022-07-23T13:16:48Z")

</div>

Closed on July 23, 2022, 1:16pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
