Collapsing an empty field

Hi,
I have a dynamic page connected to a dataset.
I would like one of the text fields to collapse when the field in the dataset is empty, and expand when there is text in it.

I’ve followed one of the threads here but I’m missing something to make the code work.
Here’s a screenshot of my entire screen. Any help would be appreciated!

Thanks,
Anat

You are using an incorrect property type of .src . What type of component is #descriptiontext? If it is a Text field, then you need .text . If it is a TextInput field, then you need .value .

You can refer to the API documentation for Text and TextInput for more details.

Thank you! As always, you come to the rescue :slight_smile: