Airtable Messaging App

Hi! I’m trying to make this chat app and have only specific messages displayed, what I imagine is that each “chat” has a unique “access” code.

Here is my code so far:

Note: This was apart of the color chat app on Thunkable.

So the page starts and loads the messages in a cloud variable

I’m attempting to filter the messages like this:

and here’s the code from the color chat app that sends a message (note: I added the code object and set it to 123456 (I’ll change this things working)) I’m trying to get the app to display only the messages with the code 123456

But Right now I see no messages and I’m unsure why?

I apologize for not being able to see all of my code, it was too big to fit on the screen. You can remix the app here!:

I would appreciate any help or suggestions!

1 Like

The original object structure does not have a property with the name code and therefore your filter condition will always be false and the list will have no entries,

1 Like

Thank you for your help! I added this:

but it still doesn’t work, any ideas?

1 Like

From the conditions in the code this addition is for new chats and not for existing ones. So for any existing chat the code property will not be available.

1 Like

You can’t count to “cloud variable general” in the second loop of the LoadMessages function because it’s a list not a number:

You have to count to “length of cloud variable general” instead:

It also seems strange to me that you are adding the found list item, j, to the end of the same list you are searching (cloud variable general). That would duplicate the existing chat message. Is that what you mean to be doing? Normally, I’d use a separate list for that so that you store the “found” results in an empty list and use that list to load when the scene opens.

I can see the entered and stored messages (when the screen loads) after I fixed the loop count block that I mentioned above.


Thank you! I did what you suggested (adding the length of block) and it worked!

Now I’m trying to separate the found messages in a list

here’s a snippet of what I changed:

But the sames things happening where the message just disappear when I input it? I think I made it work once because I can see a message with the string “sssss” but i’ve been unsuccessful in making it work.

If you’d be willing to take a closer look here’s the remix link: Thunkable

Thanks again for the help!


I’ve run into another problem. When i preview my app as a web app it freezes and can’t see if my code is executing correctly.

I got to work with the help of @muneer and @tatiang (thanks for the help!)
before i tried to filter the list of messages in the could variable “general”

After I started to filter the cloud variable general the windows began to freeze when i preview it as web app.
now when i go back to both they both freeze.

I’m going to try and preview it on my phone but was wondering if anyone would be able to test out one of two links below to see if they can see the program without it freezing.

Link 1 (non-filtered list): Thunkable

Link 2 (filtered list): Thunkable

thanks in advance,

1 Like

I tested the two apps
1 - The non-filtered one works but my text is not shown.
2 - The filtered one gets stuck.

Thank you muneer. I think i’ll discard (not delete, just move on) from this post as I can’t figure out how to do this and I also realize this will probably cost me more work in the end. I’m trying to integrate a “chat” feature in my app that doesn’t require a phone number.

here’s the chat app I was trying to show only specific list items in the “general” cloud variable, I couldn’t figure what i was doing wrong because the screen kept on freezing: Thunkable

But Thanks for all the help muneer and tating!

1 Like

Hi @muneer and @tatiang and anyone, now i know I said I was done with this but I thought maybe i could use airtable to make this work …

I managed to retrieve the data from my airtable but when i try to clone it can’t retrieve the messages.

here’s the code so far:

I sort the data like so and also enter it into a list viewer (i did this to check if it was sorting how i intended)

then (where i’m running into my problem) when i try to clone the messages it clones the styled message for each of the messages found in the first snippet
but when it doesn’t show the messages and i’m unsure why?

Edit: here’s a link to the project if you’d like: Thunkable