Support Article
Editable field turns read-only after attaching notes
SA-14183
Summary
On launching and submitting AttachANote flow action modal dialog, the fields in the parent section change to read-only. This occurs only in IE and works fine on Chrome browser.
Error Messages
Not Applicable
Steps to Reproduce
1. Create a section and add button in it. Add a text field below the button.
2. On click of button, configure a local action to call OOTB flow action "AttachANote" and open a modal dialog.
3. Create a harness and portal. The portal is added in the portals list of access group .
4. Launch the portal.
5. Enter some text in the text filed and click the button; a modal dialog opens.
6. On submit of the modal window, the text field turns read-only.
Root Cause
The Rich Text Editor in the OOTB flow action, AttachANote, is causing the memory leak which causes all other fields in the section to become unresponsive.
Resolution
Perform the following local-change:
1. On the action tab of the button (Note), configure an action ( Local action - AttachANote and opens a modal window).
2. Copy or append the script below in the text file to 'UserWorkForm’.
<script type="text/javascript">
function ieRTEInModalFix(){
if(pega.util.Event.isIE > 0){
$('body').append("<div id='zztempzz'><input type='text' id='zztempinputzz' style='position:absolute;top:-200px;left:-200px;'/></div>");
$('#zztempinputzz').focus();
$('#zztempzz').remove();
}
}
</script>
3. Add one more action on the Note button and configure RunScript action (As last action) with Function Name as ieRTEInModalFix.
Published September 30, 2015 - 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.