# Airtable "toggle" button not working

**URL:** https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784
**Category:** Questions about Thunkable X
**Created:** [December 10, 2021, 12:17am UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784 "2021-12-10T00:17:56Z")
**Posts on this page:** 9
**Page:** 1

<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: [December 10, 2021, 12:17am UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/1 "2021-12-10T00:17:56Z")

</div>

I have a value in Airtable (formatted as “single line text”) that I want to toggle between a text emoji (“🥇”) and a blank string “”.

The blocks I’ve set up should check to see if the Airtable cell equals the emoji (`app variable 1st edition symbol`) and if so, change the cell value to a blank string. And if the cell does not equal the emoji, it should set the cell value to the emoji.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a649f2ac9b296be00bd22be97381c615f89bcbe2.png)

But when I test it, it always vibrates and runs the `else` section of the code. It doesn’t ever run the `do` section of the code even though I can see the value in Airtable changing to the emoji. If I repeatedly tap the `Edit toggle` button, it vibrates each time.

Is there perhaps some issue with storing an emoji text character/string in Airtable?

**Edit:** I tried using the string “1” in place of the emoji and it still updates the Airtable cell and acts as though it’s never equal to that value.

---

<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: [December 10, 2021, 3:46am UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/2 "2021-12-10T03:46:47Z")

</div>

Ugh. Just realized I’m using Data Source blocks with Airtable when I probably should be using Airtable blocks. I’ve been through so many iterations of data sources with this project that I just kept using what I already had in my project.

**Edit:** that was it! I just needed to swap out the Data Source blocks for Airtable blocks.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/37f1968fef71e8190cff84277a6632e3db03f32b.png)

---

<div class="post-metadata">

### Author: ![kareem](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@kareem](https://community.thunkable.com/u/kareem)
#### Post date: [December 10, 2021, 9:53am UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/3 "2021-12-10T09:53:29Z")

</div>

Happens to the best of us tatiang!

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [December 10, 2021, 10:53am UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/4 "2021-12-10T10:53:04Z")

</div>

I know you already solved it but I want to add some comments that might be useful to other members.

There is a problem with the `get value` block that it only works once and any subsequent call results in giving the cached value not the actual value in the data source.

You can use the `Data Source` connection for Airtable but you need to read the value with a different block that does not return cached values such as `list of values....` or `get row`.

Using the StP becomes a bless in such situations because you can choose to connect to Airtable using the `Data Source` method or the `Airtable` component method, however, DnD does not have this `Airtable` component and using the **buggy** `get value` becomes a nuisance.

---

<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: [December 10, 2021, 3:13pm UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/5 "2021-12-10T15:13:38Z")

</div>

I appreciate that, @muneer.

@jared is this something the team is aware of and working on?

---

<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: [December 10, 2021, 4:19pm UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/6 "2021-12-10T16:19:45Z")

</div>

Hmm. I’m not sure I’m familiar with this myself. Do either of you @tatiang or @muneer (or anyone else) have a simple working example that shows this behavior?

From the sounds of it, you’re getting cached data and not live data always? In an ideal world, since Airtable doesn’t offer webhooks to automatically alert the app, how frequently would your app callout to the data source to check for updates when airtable is a datasource you are using. We cache data to keep things snappy for your users. However, the GET block IMO should get a fresh value every time.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [December 10, 2021, 4:41pm UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/7 "2021-12-10T16:41:57Z")

</div>

This is another old issue.

In this post

> [@Datasource update](https://community.thunkable.com/t/datasource-update/1608569):
>
> I am working on an application that uses google spreadsheet as a data source. When I press a certain button, I am trying to add +1 to the value of a particular cell. I constructed the app to get the value of the cell, assign it to a variable, and update the cell with the value of the variable. It seemed to work well, but when I start the app, the update to a single cell is done only once. If I relaunch the app, I can perform +1 to a single cell only once. The block is designed to get the co…

The member is having the same issue with a Google sheet `Data Source` due to the same `get value` block.

You can see @cassandra acknowledging it and promising to look into 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: [December 10, 2021, 5:11pm UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/8 "2021-12-10T17:11:27Z")

</div>

Thank you! Let’s hold the team accountable today! 🙂  
In a friendly manner, of course! 😆

---

<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: [March 10, 2022, 5:11pm UTC](https://community.thunkable.com/t/airtable-toggle-button-not-working/1650784/9 "2022-03-10T17:11:45Z")

</div>

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