We are trying to dynamically collapse a section when no data exists and expand it when data is present. To achieve this, we created conditional expressions (null/not null), and associated SigOptions, and duplicated the section in Application Designer. One section is configured for the expanded state and the other for the collapsed state using collapsed="true" with visibility controlled by the conditions.
The initial behavior works correctly. When no data exists, the section is collapsed, and when data is present, it is expanded. However, if a user manually expands the collapsed section, enters data, and then removes the data again, the section does not automatically return to the collapsed state. Even after Save or Refresh, it remains expanded. The section only collapses correctly after navigating away from the application and reopening the record.
Has anyone encountered a similar issue? Is there a supported way to force the UI to re-evaluate the collapse/expand state dynamically when the underlying data changes, or is there a better approach to achieve this requirement? Any suggestions would be appreciated.
We are on MAS 9.1