# Setting Default Value for Dropdown Option Set Based on Geolocation Plugin Output

**URL:** <https://forum.bubble.io/t/setting-default-value-for-dropdown-option-set-based-on-geolocation-plugin-output/321982>\
**Category:** Database\
**Created:** [May 12, 2024, 12:01pm UTC](https://forum.bubble.io/t/setting-default-value-for-dropdown-option-set-based-on-geolocation-plugin-output/321982 "2024-05-12T12:01:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandermooreint](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@alexandermooreint](https://forum.bubble.io/u/alexandermooreint)\
**Post date:** [May 12, 2024, 12:01pm UTC](https://forum.bubble.io/t/setting-default-value-for-dropdown-option-set-based-on-geolocation-plugin-output/321982/1 "2024-05-12T12:01:50Z")

</div>

Hi all,  
I have an option set ‘Countries’. I get the country name from a geolocation plugin. How to put the name of the Country that the plugin returrns as default value in a dropdown?  
Thanks

---

<div class="post-metadata">

**Author:** ![Sarah\_Esteve](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sarah_esteve/32/258989_2.png) [@Sarah\_Esteve](https://forum.bubble.io/u/Sarah_Esteve)\
**Post date:** [May 12, 2024, 12:18pm UTC](https://forum.bubble.io/t/setting-default-value-for-dropdown-option-set-based-on-geolocation-plugin-output/321982/2 "2024-05-12T12:18:45Z")

</div>

you should consider using a searchbox instead

or create a table with all country names (ask for chatgpt)

---

<div class="post-metadata">

**Author:** ![alexandermooreint](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@alexandermooreint](https://forum.bubble.io/u/alexandermooreint)\
**Post date:** [May 12, 2024, 12:50pm UTC](https://forum.bubble.io/t/setting-default-value-for-dropdown-option-set-based-on-geolocation-plugin-output/321982/3 "2024-05-12T12:50:55Z")

</div>

Thanks, I know but already have made Countries as an Option Set and is a big change in App to switch to table. Any idea how to do it with option set?

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [May 13, 2024, 4:58pm UTC](https://forum.bubble.io/t/setting-default-value-for-dropdown-option-set-based-on-geolocation-plugin-output/321982/4 "2024-05-13T16:58:07Z")

</div>

@alexandermooreint are you sure that the country name returned by the plugin will 100% of the time match the country name in your Option Set? If so, try the following:

1. Set your dropdown type to your Countries Option Set if not done already
2. Set the dropdown’s default value to All Countries:filtered
3. Set the filter to This Countries’ Display is `Country returned by the plugin`

---

<div class="post-metadata">

**Author:** ![Sarah\_Esteve](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sarah_esteve/32/258989_2.png) [@Sarah\_Esteve](https://forum.bubble.io/u/Sarah_Esteve)\
**Post date:** [May 13, 2024, 7:23pm UTC](https://forum.bubble.io/t/setting-default-value-for-dropdown-option-set-based-on-geolocation-plugin-output/321982/5 "2024-05-13T19:23:31Z")

</div>

Options set are loaded on every page load so it is too heavy I think to get it there
