I’m trying to achieve this simple feature:
User clicks on a list item → Textbox visibility turns on.
User click on the list item again → Textbox visibility turns off.
The way I thought I could implement this was to give the list collection in the list a boolean property and turn that on and off via an action - and connect the visibility of the text field to this boolean.
The list on the right has the true/false property: “Expand text”
It goes to “True” if you click on the list item. It all works this far, but I can’t make it go back to “False”
If I make another action that turns it to “False” both actions run simultaneously.
I tried using the “This action will only happen if…” but it contains no reference to the “Current DB” I am using.
The same effect can be achieved by a toggle button, but I don’t want a button for this, I just want the text area to be clickable.
I tried using an invisible simple shape behind the text in the list item - in order to emulate toggle behavior by setting the click action to “True/False”, this time to my surprise the “This action will only happen if…” let me reference the “Current DB”
I tried setting it to “True” on click action only if it is already “False” and the oppocite: Set to “False” only if it is already “True” - But it still didn’t work.
I want the list item to behave like a toggle button - or some other solution to click an area to hide/reveal text.
Any thoughts on this? Help is greatly appreciated.