Support Article
Error message is not retained on the screen(pyAttachContent )
SA-34999
Summary
The user has configured the OOTB 'pyAttachContent' Local action to add attachments for the work object.When user submits the screen without adding any attachment the error message at the harness level is not retaining. It is just blinking and disapperaing. The user can only see the error warning icon at the button level.
Error Messages
Not Applicable
Steps to Reproduce
- Login in to the application.
- Make a private edit of PegaSample-CustomerRequest.NewWork Flow and add pyAttachContent as the local action at the very first assignment.
- Launch local action Attach Files(s).
- Submit with out adding any attachments.
- Observe the error message at the top of harness. The error message will be disappeared after a blink.
Root Cause
In the ActionIframe, the formlevelerrors are hidden by default. Normally form level harness configuration will be there on Harness. But for actioniframe, there is no such configuration. as per design form level errors are not displayed and field level errors are only shown.
Resolution
Perform the following local-change:
Add the below script in userworkform
<script>
$(function() {
if(window.frameElement && window.frameElement.name == "actionIFrame"){
pega.u.d.alwaysShowFormLevelErrors="true";
}
});
</script>
Published March 29, 2017 - 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.