Storing a button's text in a list

I am trying to make it so that when a button is clicked, all the other buttons’ texts get cleared, but it is not working. I think the issue has to do with how I am storing the text in a list. Here is some photos of my code. There also could be else that is causing the problem. How else would I go about this?

1 Like

Welcome to Thunkable.

You are filling the list with the text content of the buttons but in your loop you try to set j to "".

This is setting the text from the list but not setting the button itself.

1 Like

So what would you suggest to reach the same goal? I have tried a few things but nothing seems to work out. Do I need to just manually set all the button’s text to " "?

1 Like

Can you explain what is that you want to achieve so I can explain the way to get it done.

Thank you! I am trying to make it that when each button is clicked, the texts of all the other buttons are cleared and then only the button that was clicked’s text is set to “Selected.”

1 Like

Try this quick demo
https://x.thunkable.com/projectPage/620d361cfac83a00119472f8

Hope that helps.

1 Like

Thank you so much! This helped a lot.

1 Like

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