# Optin sets based on the user's choice

**URL:** <https://forum.bubble.io/t/optin-sets-based-on-the-users-choice/164311>\
**Category:** Questions\
**Created:** [August 12, 2021, 11:12am UTC](https://forum.bubble.io/t/optin-sets-based-on-the-users-choice/164311 "2021-08-12T11:12:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergey.bure](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sergey.bure](https://forum.bubble.io/u/sergey.bure)\
**Post date:** [August 12, 2021, 11:12am UTC](https://forum.bubble.io/t/optin-sets-based-on-the-users-choice/164311/1 "2021-08-12T11:12:18Z")

</div>

Hi!

I have 2 data tables, Countries and Regions, etc.  
The dropdown\_c shows all countries. Meanwhile the dropdown\_r shows the regions based on the user’s choice in dropdown\_c.  
For instance, Ile de France, Grand Est, Centre for France, Sicily, Sardinia, Lombardy for Italy.  
It is not a problem to organize this with data tables.

However, solving this problem with Option sets seems pretty reasonable.  
Bubble doesn’t allow doing this, or my experience isn’t enough for this.

I would appreciate if anyone could advise on how to solve this issue though Option sets?

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [August 12, 2021, 11:18am UTC](https://forum.bubble.io/t/optin-sets-based-on-the-users-choice/164311/2 "2021-08-12T11:18:53Z")

</div>

Hi there, @sergey.bure… you can accomplish what you have described by having two option sets, one for Country and one for Region, and in the Region option set, add an attribute that is linked to the Country option set. Then, for each region in the Region option set, map its country attribute to the appropriate option in the Country option set. Finally, configure dropdown\_r to show regions where their country attribute matches what is selected in dropdown\_c, and you should be good to go.

Hope this helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![sergey.bure](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sergey.bure](https://forum.bubble.io/u/sergey.bure)\
**Post date:** [August 12, 2021, 11:46am UTC](https://forum.bubble.io/t/optin-sets-based-on-the-users-choice/164311/3 "2021-08-12T11:46:53Z")

</div>

Hi @mikeloc, I also kwon the theory very well))) That is why i tryed the Option sets first… It didn’t work(( ‘Choice source’ works wtih ‘All values’ or ‘Do search for (a data base)’. There is no way to set ‘Do search for (an option set)’.

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [August 12, 2021, 11:56am UTC](https://forum.bubble.io/t/optin-sets-based-on-the-users-choice/164311/4 "2021-08-12T11:56:19Z")

</div>

I just set up an example (you can filter an option set), and it works as expected.

 ![region-dropdown](https://us1.discourse-cdn.com/bubble/original/3X/2/8/281f151efe565fe7aa23b7d3a63471fa23fccf70.png)

---

<div class="post-metadata">

**Author:** ![sergey.bure](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sergey.bure](https://forum.bubble.io/u/sergey.bure)\
**Post date:** [August 12, 2021, 12:07pm UTC](https://forum.bubble.io/t/optin-sets-based-on-the-users-choice/164311/5 "2021-08-12T12:07:17Z")

</div>

Hi @mikeloc, Thank you! You and ‘:filtered’ make my day! 👍
