Conditional Hide a Text box or Button in a list


Hi I'm trying to hide any Text Boxes from a list if they contain no text. I added the color to the background to see which way the result went.
Unfortunately I either get errors or I have obviously done something wrong. I ultimately want to do the same with buttons.
Any help would be appreciated.
Thank you
Ps The second Set TextBox.Visible to true was meant to be in the else. But this did not work either!

Like this, but be careful building your List as the current version of App Inventor is glitchy with these blocks:

HideTextBox.aia (2.3 KB)

blocks

Hi Chris,
Yep That works. Thanks.
How did you get "TextBox.Text of component" to align on one line?
Mine looks like this
Screen Shot

Right click over the Block » Inline Inputs

image

:pray:

Lito

@>-->---

:slight_smile: Thank you Lito. I'm aiming for the stars but i'm just crawling! I have lots to learn yet.

1 Like

OK... But don't mark my answer as the Solution... because it was @ChrisWard who gave you the Solution to your question. :pray:

Lito

@>-->---

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