Looking for some ideas here, does anyone know if there is a Wappler way to collapse everything when opening a modal.
Example I open a modal for the first time, inside it all collapse elements are collapsed, i click a button which opens the collapse element. I close down the modal. I open a different record to view its details, and the collapse are is already opened because the last time the modal was open on another record it was open. Looking for a way to always start with a clean collapsed modal on open.
Or you might prefer putting those actions on the ‘hidden’ attribute for the modal so they’re collapsed at the time it’s closed and is just after so nothing is seen. I generally do a form reset action on modal ‘hidden’ attribute so it’s all tidy the next time it opens.
I tried to handle it dynamically (in case that you have a looot of collapses) with a variable but I couldn’t find the way without using javascript (pure UI)…
Perhaps you could use an accordion
Thanks all for the many suggestions, appreciate it, @famousmag, your way is kind of similar to how i had it, and i was wondering if there was a better, more Wappler UI way to do it, in other way like the way @Heather_Mann showed, which to be honest is what i was looking for, but was not showing me those options in the UI at all.
I have now actually opened a blank page and all the options like Heathers do indeed show up, so it must have just been not liking my one inside a view, inside a condition, inside a modal etc. probably just got a little confused.