Support Article
Error popup displays continuously on unselecting dropdown value
SA-56946
Summary
On unselecting a value in a dropdown control, the 'Value cannot be blank' popup displays continuously despite clicking Ok or Cancel buttons.
Error Messages
Value cannot be blank. Please select Ok to return to the field and provide a value or Cancel to proceed to the next field.
Steps to Reproduce
- In accessibility mode, add a mandatory dropdown for Title.
- Select a value (for example, Mr.).
- Reset to 'Select' placeholder value.
- Click the Tab key. The error popup displays infinitely despite clicking Ok or Cancel options on the popup.
Root Cause
A defect in Pegasystems’ code or rules.
The focus recursively shifts to the dropdown.
Code in the display_displayConfirm function in the harness_accessibility JavaScript, displays the Confirm dialog for the error.
if(gErrorElementName!=""){
if(!confirm(errorString)){
console.log("Inside cancel");
gErrorElementName = "";
return;
}
}
var firstElementName = errorList[errorList.length-1].element.name;
console.log("Before focusing");
window.setTimeout("pega.u.d.Axisbility.focusElement('" + firstElementName +"')", 100);
} }
else{
gErrorElementName = "";
}
On click of Cancel or Ok, the Validate function invokes the onBlur event. The onBlur event is triggered infinitely because of the focus on the dropdown.
Resolution
Apply HFix- 43862.
Published September 13, 2018 - 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.