Question
1
Replies
407
Views
HCL
Posted: March 1, 2017
Last activity: March 1, 2017
Closed
Customize FormErrorMarker section
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.
You need to actually include your section in the Harness with a visible when condition.
The following is an extract from the help for harness display options:
This field appears only when you select
Displayed in Configurable Section
in the Form-level errors field. To add the section do the following:hasMessages
from @baseclass and click OK.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 toDefault
orTop of harness
— both the custom and standard form-level error section will appear.