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
- Create a section with text fields which has validation rules.
- Include an icon to display SmartInfo.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.