Support Article

Issue with removal of "Show next error" message on Layout Group

SA-28587

Summary



On Layout Group, user is unable to remove "Show next error" message

There are two layout groups in the portal, with multiple validations on the fields. It's a requirement to get rid of the "Show next error" messages that appear on both the layout groups. User, instead, wants to use a custom section to display messages on the "Perform" harness.
 

Error Messages



Not Applicable


Steps to Reproduce

  1. Add nested layout groups in a section, with Validate rule on the flow action.
  2. Submit without filling details in required fields.
  3. Observe that it displays layout level error on top of every layout group.


Root Cause

It is as per PRPC default implementation. User requested  customization.

Resolution



Perform the following local-change in HTML Fragment rule called UserWorkForm: 
 
<style>
.content-layout-group > .error-table{
  display:none; /* hide the layout group level error display */
}
 
.dataLabelWrite.field-item { /* to add a line break in custom errors displayed at top are in single line */
    word-wrap: break-word;
    white-space: pre;
}
 
</style>

Published September 28, 2016 - Updated October 20, 2016


100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.