Support Article
Validation does not trigger on collapsing a grid record
SA-86612
Summary
Validation does not trigger on collapsing a grid record. However, validation is triggered on expanding a row.
Error Messages
Not Applicable
Steps to Reproduce
- Configure an expand or a collapse grid.
- In the expanded section, configure fields with validations.
Root Cause
The same section is present twice in the Document Object Model (DOM). The text input property is also present twice with the same name and ID attributes. A value is entered for one element. Since the other element though not visible on the screen has an value empty, this empty value is passed on click of the 'Submit' button. This resulted in Validation errors.
Resolution
Perform the following local-change:
Uncheck the 'Run visibility condition on client' on both the dynamic layout's Visibility condition.
Published December 19, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.