Question

Displaying tooltip/smart tip for a disabled button (on hover action) - 7.1.8

Hello,

Hope everybody is doing well. Newbie to Pega platform. My requirement is to display a message(tooltip or smart tip) when user hovers over a button. The message should only be displayed when the button is disabled. When button is enabled, the message should not pop-up and do the regular operation it is programmed to do. I can achieve both functionalities separately(disabling the button and displaying the tooltip. Is there anyway we can combine these two operations?

Thanks in advance for your help.

Regards,

Arpan Parikh

Correct Answer
September 10, 2018 - 1:56pm

I'm not sure if there is an easy way to do this OOTB. It might be overkill (or perhaps the only option OOTB), but I imagine you could easily achieve this by having two different buttons with a visible when. One is always disabled with a tooltip. The other is a regular ol' button. Then you can show/hide each, pending the same disable when condition you are already using.

Comments

Keep up to date on this post and subscribe to comments

September 10, 2018 - 1:37pm

Hello Arpan,

Please let me know in which version you want to achieve this functionality, the reason being with every PRPC version a lot of new UI features get added and some requirement which is possible in one version might not be possible in another.

Regards,

Rachit

September 10, 2018 - 1:50pm
Response to Rachit_Agarwal

Version is 7.1.8. I have updated in the description as well.

September 10, 2018 - 1:56pm

I'm not sure if there is an easy way to do this OOTB. It might be overkill (or perhaps the only option OOTB), but I imagine you could easily achieve this by having two different buttons with a visible when. One is always disabled with a tooltip. The other is a regular ol' button. Then you can show/hide each, pending the same disable when condition you are already using.

September 10, 2018 - 2:42pm
Response to Rett_Hean_GCS

Thanks @Rett_Hean_GCS. I will try this approach and will update on the outcome.

September 11, 2018 - 2:56pm
Response to Rett_Hean_GCS

Thanks @Rett_Hean_GCS. Your approach works. However, this works only when button is enabled. When I disable the button, Smart tip functionality does not work. Any idea on how to make that work? 

September 11, 2018 - 4:12pm
Response to ArpanP77

Tooltip should still work while disabled. You mentioned that could still satisfy your requirement right?

December 18, 2018 - 10:08am
Response to Rett_Hean_GCS

I have already marked your first response as correct answer. I was able to satisfy the requirement.

Regards,

Arpan Parikh

September 11, 2018 - 3:08pm
Response to Gayatri

This is for totally different purpose :(