<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Collapsable Section layout</title><link>https://community.appian.com/discussions/f/general/39650/collapsable-section-layout</link><description>I have a form where we are showing multiple sections which is collapsable. I made couple of sections as collapsed initially thinking that contents would not load until user expand the section. But its not the case, contents are still evaluating even if</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Collapsable Section layout</title><link>https://community.appian.com/thread/151167?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 05:28:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:24da3f3d-8ed8-4da3-b5f2-c2e90d948278</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;As the collapsed status is not accessible in code, there is no way to react on it. You can either create your own collapsible component which supports loading data on demand, or use asynchronous loading for the initially collapsed sections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Collapsable Section layout</title><link>https://community.appian.com/thread/151164?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 02:56:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5da2c613-4beb-486f-b2bf-88c4345fb24e</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;You&amp;#39;re correct that collapsed sections still evaluate their contents because isInitiallyCollapsed only controls visual display, not evaluation. To achieve on-demand content loading while maintaining validation, use conditional evaluation with if() statements controlled by a local variable tracking the expansion state. When the section is collapsed, the if() returns empty content preventing evaluation. When expanded, it loads the heavy content. Place your validations in the section&amp;#39;s validations parameter not inside the conditional content so they still execute on submit regardless of collapse state.&lt;br /&gt; For Appian 25.3, wrap your expensive queries in a!asyncVariable() within the conditional logic for even better performance. This loads data asynchronously and shows placeholder skeletons. The pattern would be&lt;br /&gt; local!sectionData: if(local!isExpanded, a!asyncVariable(rule!expensiveQuery()), null). &lt;br /&gt;This approach gives you the performance benefit of loading content only when needed while preserving form validation functionality.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>