We have a form with multiple collapsible sections, and in some of these we also have subsections. When user clicks on submit, there might be errors in the subsections that are not visible to the user because the parent section does not have the "This section contains errors" warning. I've come to discover that it's because other subsections don't have any errors. Here's an example where this happens:
Here both the parent and child show that there are validation erros.
The moment I add a section without validation errors, the warning disappears on the parent:
I feel like this should not be the standard behavior and is something Appian should fix on their end. The only workaround I can think of is to have validations at section level, on the parent section. But that would display a red message box on the section that for me is not desirable. Any help here is appreciated.
Discussion posts and replies are publicly visible
I expect this is likely a side-effect of the fact that we weren't even able to nest SectionLayouts in other SectionLayouts (at all) until a few versions ago. So I'm not too surprised if this behavior is a little inconsistent or unintuitive. You might try reporting this to Appian via a Support Case and see if they want to recognize it as a bug.
The one thing I'm curious about - I assume in your first example you wouldn't be able to collapse the Parent section (if it were collapsible). But how about in the second example? If the Parent section there allows you to collapse it, that would be more justification for classifying this as a "bug" imho.
In the second example, the section would be collapsible (if it was enabled). Which is a big problem because if the section is collapsed when submitting it will not uncollapse and hence the errors will not be visible to the user. The user then would have to manually uncollapse several sections to find out which one has errors.
It's also not working the way they describe in their documentation, so I guess it should be reported as a bug.
I suggest to open a support case to report this.
Was this ever addressed in any version of Appian? We have the same issue where the collapsed section won't show validation error or requiredness. We are on Version 22.4
On my 25.1 version, I do not see any changes. It behaves as described in the first post.