Requirement: Need to customize FormErrorMarker HTML Fragment rule.
Issue: We have created our own custom rule for Form Error display. We want to embed this HTML Fragment rule instead of OOTB FormErrorMarker rule in perform harness. We have tried configuring it in "Display Options" tab in harness, under Error display section. However our custom rule is not being picked up.
Please help us in embedding our custom from error HTML fragment rule in harness.
This field appears only when you select Displayed in Configurable Section in the Form-level errors field. To add the section do the following:
Press the down arrow to select a section that will display the error message.
Open the section. On the section's Design tab, type the message text in one or more label fields on the layout, and save the rule.
Include the section on the harness where you want the message to appear.
Open the section's Properties panel.
In the Visible When field, select hasMessages from @baseclass and click OK.
Save the harness.
For an example, see PDN article How to create a custom error section in user forms.
Caution: If you select this option, the standard form-level error section will not appear. Therefore, make sure that you add the custom section to the harness layout. Otherwise, no messages will appear. Optionally, you can use the Displayed in Configurable Section option, add the section specified here to the layout, and change the option to Default or Top of harness — both the custom and standard form-level error section will appear.