Support Article
Issue with Rich Text Editor post value
Summary
Rich Text Editor (RTE) field with a post value action (on-change) and a drop-down field are present on a section. When the user enters a value in the Rich Text Editor field and moves to the next field (drop-down) without clicking outside, cursor automatically moves out of the field. Hence, the user is unable to select a value.
Error Messages
Not Applicable
Steps to Reproduce
- Add an RTE field and a drop-down field to a layout
- Add a post value to the RTE
- Add a value to the RTE
- Click the dropdown
Root Cause
RTE with post value and required dropdown are present on the User Interface (UI). After user enters text in the RTE and clicks the dropdown, blur fires on the dropdown as post value and refresh occurs in the Document Object Model (DOM).
Resolution
Perform the following local-change:
1. Create a non auto section and include the below script:
<script>
function disableFocus(){
pega.u.d.disableFocusInIE =true;
}
function enableFocus(){}{
pega.u.d.disableFocusInIE =false;
}
</script>
2. Use the below actions in the same order for the RTE onchange event:
a. Run Script > disableFocus
b. Post value
c. Run script > enableFocus
Alternatively,
1. Remove the post value from the RTE
2. Add a hidden control and property to retrieve the value of RTE and post it on form Submit
Published August 19, 2019 - 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.