Support Article
No option to configure a dynamic tooltip
SA-34009
Summary
There is no option to configure a dynamic tooltip for radio buttons, when a single radio button is required to be shown in a grid.
Error Messages
Not Applicable
Steps to Reproduce
Not Applicable
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Perform the following local-change:
1.Create a non auto section and place it inside the section in which it is having grid.
2. Note that Id should match with radiobutton id in Dom ,copy the dom radiobutton id and use it.
3. Without Pagination in the grid then try below local change
<script>
pega.u.d.attachOnload(
function(){
var toolTipLabel = "My Tooltip";
var radioButtons=$("[id='$PD_ImpactedCountriesList$ppxResults$l$pCountryName']");
for(var i=0;i<radioButtons.length;i++){
radioButtons[i].setAttribute("title",toolTipLabel);
}
}
);
</script>
2. With pagination in the grid then try below local change
<script>
var customTooltip= "My Tooltip";
var radioButtons=$("[id='$PD_ImpactedCountriesList$ppxResults$l$pCountryName']");
for(var i=0;i<radioButtons.length;i++){
radioButtons[i].setAttribute("title","customTooltip");
}
</script>
pega.u.d.attachOnload(
function(){
var toolTipLabel = "My Tooltip";
var radioButtons=$("[id='$PD_ImpactedCountriesList$ppxResults$l$pCountryName']");
for(var i=0;i<radioButtons.length;i++){
radioButtons[i].setAttribute("title",toolTipLabel);
}
}
);
</script>
2. With pagination in the grid then try below local change
<script>
var customTooltip= "My Tooltip";
var radioButtons=$("[id='$PD_ImpactedCountriesList$ppxResults$l$pCountryName']");
for(var i=0;i<radioButtons.length;i++){
radioButtons[i].setAttribute("title","customTooltip");
}
</script>
Published March 10, 2017 - 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.