Skip to main content
April 15, 2022
Question

Expand All and Collapse all in section layout

  • April 15, 2022
  • 5 replies
  • 0 views

Hi Folks,

How can I have expand-all and collapse-all feature as a button/link in my interface which is having multiple section layout. I know we have is collapsible and isinitiallycollpased parameters which are present. But that works only on page load. How can I make it dynamic which is work on clicking of a button or link?

Regards,

Ghanashyam

5 replies

gopalk2865
Participating Frequently
April 15, 2022

Hi Ghanashyam, you can use richtextdisplayfield where you can use icons like chevron-up and down and configure dynamic link into it and then use a Boolean local variable into link's saveInto parameter and then add a condition in your interface to show rest of the section layout based on that local variable value.

April 18, 2022

Thanks Gopalk.  I agree with the solution to give a show when condition for the contents inside Section layout ; but that's unable to make the expand and collapse icon dynamic which is beside the label of the section layout.

mikes0011
Brainy
April 15, 2022

This is one of my "feature request backlog" items - the ability to control the collapsed-state of collapsible components (sections, boxes, etc) from external controls (like just adding a parameter called "isCollapsed" which can be set to a variable which, when changed, causes the component to follow that behavior. or something).

Unfortunately it's not currently possible without using some workarounds that basically involve building your own "fake" component to replace the OOB component (similar to what Gopalk already described).

The Expression Guru
April 18, 2022

Thanks Mike. I agree with the solution to give a show when condition for the contents inside Section layout ; but that's unable to make the expand and collapse icon dynamic which is beside the label of the section layout. Any idea when this feature set will be ready ?

mikes0011
Brainy
April 18, 2022

There are no plans that I'm aware of to actually implement this - you'd need to reach out to Appian and request the funcitonality and/or see whether it's on their roadmap, though FYI this is usually a very slow process.

The Expression Guru