# Need help creating and updating data

**URL:** https://community.thunkable.com/t/need-help-creating-and-updating-data/3996253
**Category:** Questions about Thunkable X
**Tags:** beginner, help, google-sheets
**Created:** [July 14, 2025, 4:25pm UTC](https://community.thunkable.com/t/need-help-creating-and-updating-data/3996253 "2025-07-14T16:25:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jsrambles](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jsrambles](https://community.thunkable.com/u/jsrambles)
#### Post date: [July 14, 2025, 4:25pm UTC](https://community.thunkable.com/t/need-help-creating-and-updating-data/3996253/1 "2025-07-14T16:25:29Z")

</div>

Hello,

I am very new to Thunkable and might be overreaching in my excitement to try Thunkable. I started with what I thought was a decently simple project but it has since gotten complicated.

I am trying to create a simple food feedback survey app.

It consists of 10 questions where users will simply choose from the three “😋😐🤮” to express their feelings on a certain food.

The responses get saved to a google sheet, the format of this sheet is each food item is a column so each user response is a row. When the user is finished, the app returns to the main screen and creates a new row for the next user’s responses.

I am not sure if this is the best way to format my data, it made sense in my head at the time of making it.

I have successfully linked my google sheet, when I type data on google sheets and update my sync in Thunkable, I can see the changes I have made. When buttons are pressed though, none of their values are being updated and uploaded to the google sheet.

Here is the logic of a single button, all buttons follow this logic and values just change depending on the type of button:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/e/2e9d0b5b3fa3451db0e8a25c643a58d80c57ac63.png)

Here is a small snippet of the function “handleRating” it repeats itself through each food category:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/f/9f5967e39887901dd75ff3847aa49f38e4e0b723.png)

If you would like a closer look here is the project details: [Bomber Food Project](https://x.thunkable.com/projectPage/686d68521f41d652f3f7b67c)

Any suggestions are welcome and feel free to ask questions, I tried to explain it as best I could. Thanks!

TLDR: I am using button clicks to upload data to a google sheet-- the data is not being uploaded, how can I fix this?

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [July 14, 2025, 6:32pm UTC](https://community.thunkable.com/t/need-help-creating-and-updating-data/3996253/2 "2025-07-14T18:32:21Z")

</div>

Where have you defined currentRowId? I was expecting it to be a app variable, which would get updated like  
currentRowID = currentRowID + 1  
It appears in the “update value” block you have just typed currentRowId …

---

<div class="post-metadata">

### Author: ![jsrambles](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jsrambles](https://community.thunkable.com/u/jsrambles)
#### Post date: [July 14, 2025, 7:43pm UTC](https://community.thunkable.com/t/need-help-creating-and-updating-data/3996253/3 "2025-07-14T19:43:36Z")

</div>

Hi! I do initialize a variable-- I wrote it in the first screen where it has a button which starts the survey. Here is the blocks for that one:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/9/09da0dae5cc183360b850302897a29d189fb96ec.png)

I have no idea if I am initializing anything correctly here. My thought process was initialize the currentRowId when the screen is open.

When the Start Survey button is clicked, check that you are in an empty row (Just in case something goes wrong and you are in a row with existing data) make sure everything is null for the new row, to get ready to receive responses.

Should I be initializing all this within the screen where I have my actual survey questions instead?

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [July 15, 2025, 4:59am UTC](https://community.thunkable.com/t/need-help-creating-and-updating-data/3996253/4 "2025-07-15T04:59:27Z")

</div>

> **[Thunkable](https://x.thunkable.com/copy/9a7344801ebef88af94b05cde268217d)**

So what I did was initialized the currentRowId as text string. The reason is the green block row id will be something like id1234abcd or id4254fhre in other words alwaus id. It is not an object for sure. So that I have corrected.

You had given the green block user id\_vlaue = row id. That is not right, I assigned it to some random number 1234 and subsequently it will be id\_vlaue+ 1

Lastly in the happy not happy screen I have used the saved currentRowId for the row id

I am no expert, has some spare time so trying to help. I will be busy tomorrow …Hopefully this will work.

---

<div class="post-metadata">

### Author: ![jsrambles](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jsrambles](https://community.thunkable.com/u/jsrambles)
#### Post date: [July 16, 2025, 2:56pm UTC](https://community.thunkable.com/t/need-help-creating-and-updating-data/3996253/5 "2025-07-16T14:56:36Z")

</div>

Thanks for your advice and help!

I had no idea row id worked that way, and initializing strings instead of objects made so much more sense.

I still didn’t quite get it to work with my original way of thinking but the changes you provided got me on track to a different process and I managed to get it working! 😁

Thanks a bunch! 🎉

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [October 14, 2025, 2:57pm UTC](https://community.thunkable.com/t/need-help-creating-and-updating-data/3996253/6 "2025-10-14T14:57:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
