# Setting default value of a radio button

**URL:** <https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133>\
**Category:** Need help\
**Created:** [March 19, 2024, 11:20am UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133 "2024-03-19T11:20:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![debbie](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@debbie](https://forum.bubble.io/u/debbie)\
**Post date:** [March 19, 2024, 11:20am UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/1 "2024-03-19T11:20:09Z")

</div>

Hi all, I have a small and hopefully simple issue.

I have a radio button set that is dynamic - using data from an option set. The option set has two fields : currency code and currency description.

The currency description is displayed, and when the use selects the currency they want and clicks a button “save”, the currency code gets written to a field called “currency” in the user’s record.

What I want to happen is that whenever the user comes back to this screen, the default value for the radio button is whatever the user’s current currency is. I don’t seem to be able to do this because the default value would be based on the current user and not the option set, see below:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/5/05e9b3a834bc1b6fe8478078f501ed98538ddb9a.png)

Is there a way to overcome this? Or do I have to use static rather than dynamic values (which would be pretty clunky imo).

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [March 19, 2024, 11:48am UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/2 "2024-03-19T11:48:21Z")

</div>

Hey @debbie 👋

I see how that can be difficult. There are a few different ways to do this, here is one option.

Instead of saving just the currency code, you should save the whole option set to your user. So you need to create another field ‘subscription currency’ on the user. Make sure the type is actually the option set and not a text. Then you can save and display the option set in the way that you want.

Does that make sense? 😊

---

<div class="post-metadata">

**Author:** ![debbie](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@debbie](https://forum.bubble.io/u/debbie)\
**Post date:** [March 19, 2024, 12:31pm UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/3 "2024-03-19T12:31:26Z")

</div>

Hi @J805 , sorry I should have mentioned that I’d already done that… like this, right?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/2/f2955936b29650b29fd85ca276abb41afe53f63f.png)

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [March 19, 2024, 1:19pm UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/4 "2024-03-19T13:19:22Z")

</div>

Oh. Then just remove ‘display’ at the end where your error is. 😊

---

<div class="post-metadata">

**Author:** ![debbie](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@debbie](https://forum.bubble.io/u/debbie)\
**Post date:** [March 19, 2024, 1:23pm UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/5 "2024-03-19T13:23:13Z")

</div>

Sorry I don’t understand…what do I need to remove?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [March 19, 2024, 1:38pm UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/6 "2024-03-19T13:38:25Z")

</div>

No worries. Let me try to take a screenshot for you. 😊

Your error says ‘Current user’s currency’s display’ but it should be ‘Current user’s currency’.

Does that help?

 ![IMG_0707](https://us1.discourse-cdn.com/bubble/original/3X/c/6/c611a251176826dfd429ed267a55d6f138c82ade.jpeg)

---

<div class="post-metadata">

**Author:** ![debbie](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@debbie](https://forum.bubble.io/u/debbie)\
**Post date:** [March 20, 2024, 1:40am UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/7 "2024-03-20T01:40:33Z")

</div>

That worked! Thank you so much.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [March 20, 2024, 5:58am UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/8 "2024-03-20T05:58:04Z")

</div>

Glad that helped. 😊

---

<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:** [May 28, 2024, 11:20am UTC](https://forum.bubble.io/t/setting-default-value-of-a-radio-button/313133/9 "2024-05-28T11:20:26Z")

</div>

Closed on May 28, 2024, 11:20am UTC

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