Support Article

On presence of error message on the header, hover is not working

SA-37106

Summary



The user has an icon configured to display a SmartInfo. When there are errors in the section and user hovers on the icon, the SmartInfo is not displayed and focus goes to the error messages.User is on Pega CSHC 7.14 on Pega 7.2.

Error Messages



Not Applicable


Steps to Reproduce

  1. Create a section with text fields which has validation rules.
  2. Include an icon to display SmartInfo.
  3. At runtime, when error messages appear in section and user hovers on the icon, SmartInfo is not displayed and focus shifts to the error messages.


Root Cause



SmartInfo is losing focus when there are error messages.

Resolution



Perform the following local-change:

Paste below code in USERWORKFORM :
<script>
function focusSmartInfo(){
setTimeout(function(){
if($('.smartInfoContainer')){
$('.smartInfoContainer').each(function(){
var scrollPos = $(this).offset().top;
$(window).scrollTop(scrollPos);
});
}
},500);
}
</script>


Call "focusSmartInfo" after "Show SmartInfo " action.

Published April 26, 2017 - Updated May 5, 2017

Have a question? Get answers now.

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