How to conditionally expand/collapse a dynamic layout
I have a requirement to conditionally expand/collapse a dynamic layout.
In my section there is a dynamic layout which is collapsible and the 'expand on load' check box is checked. Now when the user opens the screen the layout is expanded by default. The user have the ability to collapse the layout and click on save button in UI.
When the user again logs in after logging out by default the layout should be collapsed.
Can anyone have any idea how to implement this ?