# Write Firebase data

**URL:** <https://community.thunkable.com/t/write-firebase-data/568235>\
**Category:** Questions about Thunkable X\
**Created:** [May 15, 2020, 3:26pm UTC](https://community.thunkable.com/t/write-firebase-data/568235 "2020-05-15T15:26:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlosalbertoleonelz](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@carlosalbertoleonelz](https://community.thunkable.com/u/carlosalbertoleonelz)\
**Post date:** [May 15, 2020, 3:26pm UTC](https://community.thunkable.com/t/write-firebase-data/568235/1 "2020-05-15T15:26:14Z")

</div>

Dear on my user registration screen, I’m using two components: spinner and radiobutton. The spinner is for blood type and the radiobutton for sex (male, female and others) however, I don’t know how to record the data after being selected from the database. Could you please help me?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 15, 2020, 5:40pm UTC](https://community.thunkable.com/t/write-firebase-data/568235/2 "2020-05-15T17:40:18Z")

</div>

what type of data structure do you want to have. all users separate? all users put into same spreadsheet?

---

<div class="post-metadata">

**Author:** ![carlosalbertoleonelz](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@carlosalbertoleonelz](https://community.thunkable.com/u/carlosalbertoleonelz)\
**Post date:** [May 15, 2020, 6:05pm UTC](https://community.thunkable.com/t/write-firebase-data/568235/3 "2020-05-15T18:05:06Z")

</div>

All users separated according to their characteristics. Maybe I’m getting it wrong but I just need to save what was selected in Radiobutton and Spinner. Ex .: Paul is male and has positive O blood type. Ana is female and has a negative blood type. I just want to know how to treat these two components.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 15, 2020, 6:40pm UTC](https://community.thunkable.com/t/write-firebase-data/568235/4 "2020-05-15T18:40:50Z")

</div>

You can use the userID provided by the Firebase login as part of the firebase key

Set the key path like this

Key = APPNAME/userID/bloodtype

---

<div class="post-metadata">

**Author:** ![carlosalbertoleonelz](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@carlosalbertoleonelz](https://community.thunkable.com/u/carlosalbertoleonelz)\
**Post date:** [May 15, 2020, 6:56pm UTC](https://community.thunkable.com/t/write-firebase-data/568235/5 "2020-05-15T18:56:30Z")

</div>

Jared, I don’t think I can explain it to you. Perform user registration I know how to do. My problem is how to save selected data in the Radiobutton and Spinner components. That’s it!

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 15, 2020, 7:06pm UTC](https://community.thunkable.com/t/write-firebase-data/568235/6 "2020-05-15T19:06:59Z")

</div>

sorry. based on the choice the user makes, you want to save that selection?

---

<div class="post-metadata">

**Author:** ![carlosalbertoleonelz](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@carlosalbertoleonelz](https://community.thunkable.com/u/carlosalbertoleonelz)\
**Post date:** [May 15, 2020, 7:29pm UTC](https://community.thunkable.com/t/write-firebase-data/568235/7 "2020-05-15T19:29:38Z")

</div>

Yes, that it!

---

<div class="post-metadata">

**Author:** ![carlosalbertoleonelz](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@carlosalbertoleonelz](https://community.thunkable.com/u/carlosalbertoleonelz)\
**Post date:** [May 15, 2020, 11:50pm UTC](https://community.thunkable.com/t/write-firebase-data/568235/8 "2020-05-15T23:50:48Z")

</div>

Jared, I managed to save the data to RadioButton:

 ![Radiobutton](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/b/5bc487e53dc52518613160704d25987cd95b6bb0.png)  
Now to read what’s inside it how do I do it?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:26am UTC](https://community.thunkable.com/t/write-firebase-data/568235/9 "2024-11-08T11:26:46Z")

</div>


