Support Article
Madatory check is not working in Rich Text Editor control
Summary
Mandatory field validation is triggered on client side but 'X' symbol is not appearing for RTE control.
Error Messages
Not applicable
Steps to Reproduce
Step 1 : Create a section and add RTE Control. Check the required field check box.
Step 2: Submit the form without entering value for RTE.
Root Cause
A defect in Pegasystems’ code or rules.
The issue is side effect of a Hfix given only in 6.2 sp2. There is code in createErrorMarker function of pega_validators js to set left style on icon error by taking it from the control. As in case of RTE the element will be a hidden textarea with left -9999, It causes the icon to disappear.
Resolution
1. The changes in Hotfix-26303 were made by skipping adding left style to the RTE's error icon in createErrorMarker function in PEGA_VALIDATORS js.
2. Additionally the following local change also resolved the issue:
Work around is to always give the RTE's error icon a left of 0px.
Add the following style to UserWorkForm:
<style>
#yahoo-com .iconError{
left:0px !important;
}
</style>
Published March 16, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.