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

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 May 6, 2017 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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