Show/ hide a caption

Hi

I’m very new to app building and am trying to make a clickable button or title which will show or hide a caption underneath (ie show on first click, hide on second click). I have seen a similar post here but got lost at point number 8 of Mari’s solution (“To improve the experience, you can easily switch between short and long…”)

Would really appreciate some help with this. Thanks!

  1. Create a button
  2. Create a text paragrah
  3. Create a boolean page variable eg visible And set it to true
  4. Bind the text’s visibility to the variable visible.
  5. On the onComponentTap event for the button add the set page variable node.
  6. Set pageVars.visible to NOT(pageVars.visible)

You’re basically toggling the visibility of the paragraph here.

That’s wonderful thanks so much!