Hi, I have a checkbox, now on check of it i have to expand a layout, uncheck of that checkbox i have to collapse the layout. Note: both the layouts are present in the same section. I have tried with two approaches : Firstly have used Expand/collapse action set of on change of that checkbox, which was expanding/collapsing all the layouts which are presents in the screen which is not my requirement. Secondly based on the property value used Expand when of that particular layout, now the problem is it is getting expanded on check of that checkbox but not collapsing on uncheck of that checkbox. On change of the checkbox used Refresh the section option. Please let me know if any solutions available other than touching the .js file.
***Edited by Moderator Marissa to update platform capability tags****
I have tried with the approach suggested here , it is working but i have some concerns after I tried the above approach :
Here in our scenario, the layout id will not be static, if later on someone add new layout in the section the id will be changed hence we can not directly hardcode/set the EXPANDEDSubSection Param on check of the button.
Now If we go with my first approach, how can we control the Expand/Collapse Action set ? When I tried earlier it was Expanding All which are not required.
In the second approach, when the check box is checked it is working fine as the when condition on the expand is true. On uncheck the property value might be having the same value which is used for expanding.
On change use a DT.
If the check box is checked set the property so that the layout will be expanded.
else reset the propety so that the layout will be collapsed
Refreshing the section is fine.
Chack the property value for expanding / colapsing.