Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Error word displays multiple times when accessibility is enabled



On enabling Accessibility, the 'Error:' text displays multiple times with the error message.

Error Messages

Not Applicable

Steps to Reproduce

  1. Add a post action validation to a property in a flow action rule.
  2. Run the case.
  3. Submit the form with invalid data.

Root Cause

A defect in Pegasystems’ code or rules.

pega.u.d.Axisbility.displayError API was invoked multiple times when the form was submitted. As a result, the 'Error:' text was included at the beginning of the error message for each call.


Perform the following local-change:

Add the below script in the UserWorkForm:  


pega.u.d.Axisbility.displayError = function(){
varbTitleUpdated =false;
// get all error spans
var spans = document.getElementsByTagName("SPAN");
varfirstErrorFocused = true;
for(i=0; i<spans.lengthi++){
if(spans[i].getAttribute("errId") || spans[i].id=="PegaRULESErrorFlag"){ // for each SPAN hide the image and show error
if (spans[i].getAttribute("data-dl") === "1") {
/* BUG-194893 - START - For dynamic layouts, server error messages are placing as inner text of span instead of title attribute */
varerrorStr = spans[i].textContent;
try {
errorStr = (errorStr.indexOf(":")==0)?errorStr.substr("1"):errorStr;
errorStr = errorStr.replace(/^\s+|\s+$/g,'');
} catch (e) { }
varerrMsg = this.errorField + errorStr;
if(errorStr && errorStr.indexOf(this.errorField) == 0){ // this line checks if already "Error:" is there is error message
errMsg = errorStr;
/* BUG-194893 - END */
} else {
varerrMsg = this.errorField + spans[i].title;
if(errorStr && errorStr.indexOf(this.errorField) == 0){
errMsg = spans[i].title;
spans[i].className = "inputError";
if(spans[i].parentNode.tagName == "DIV" && spans[i].parentNode.className == "iconErrorDiv"){
spans[i].parentNode.className = "";
if(top.document.title.indexOf(this.errorTitle) == -1){
top.document.title += this.errorTitle;
bTitleUpdated =true;

Suggest Edit

Published December 4, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us