# Problem with value fetching ; Google Sheets

**URL:** <https://community.thunkable.com/t/problem-with-value-fetching-google-sheets/3091240>\
**Category:** Issues / Bugs\
**Tags:** beginner, google-sheets\
**Created:** [July 9, 2024, 12:38am UTC](https://community.thunkable.com/t/problem-with-value-fetching-google-sheets/3091240 "2024-07-09T00:38:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msd.revoltboqf](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@msd.revoltboqf](https://community.thunkable.com/u/msd.revoltboqf)\
**Post date:** [July 9, 2024, 12:38am UTC](https://community.thunkable.com/t/problem-with-value-fetching-google-sheets/3091240/1 "2024-07-09T00:38:12Z")

</div>

Hello!  
I’m currently making an app on Thunkable and i’ve run into a problem. I’m trying to make a button where when i click it, the button’s text is updated to a value fetched from Google Sheets and then returns back to its original value. Here’s a screenshot of the code:

 ![Screen Shot 2024-07-09 at 3.32.24 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/dae5c571e311ebc55ec03df43fd20f84d899d96c.png)  
This works for the first time, but after that if I update the value on Google Sheets, it stays constant to the old value. (Example: if the value is 12, it prints 12, but if i change the value from the sheets file to 11, it still prints 12 unless i restart the app).  
Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 9, 2024, 2:12am UTC](https://community.thunkable.com/t/problem-with-value-fetching-google-sheets/3091240/2 "2024-07-09T02:12:42Z")

</div>

See this: [Google Sheets data source doesn't update every time - #6 by matt\_conroy](https://community.thunkable.com/t/google-sheets-data-source-doesnt-update-every-time/2504230/6)
