Configure the Collapse And Expand View Events And Actions

You can use the Collapse and Expand view rule events and actions to control when views should expand or collapse, and what to do when a view expands or collapses. For example, you can use actions to populate a view with data on-demand; in other words, instead of loading a view with data when the form initializes, only load the data in the view if the person expands the view. This can help to improve form performance by delaying loading data until the person wants to see the data. You can use the Load and Initialize methods when the view is expanded instead of when the form initializes, to minimize the delay time when a form opens.

Collapse a view when the form opens

Data loads when the view is expanded

Try it yourself!