Turn off popup Hints in Client Controller script

Geoffrey Bishop
Tera Contributor

Hello handsome and intelligent ServiceNow Developers,

 

I cloned the SC Cart widget so that I could disable the Delete Item confirmation dialog.  I got that working.  Woohoo.

 

But... now I am having a weird issue where, when the user deletes an item from his cart, the stupid popup hint remains on the screen for several seconds.  See screenshots below.

 

My question is this.  How can I remove all hints (or this hint specifically), from script?  Is there a magical function which does that?  I believe I would place this in the "Client Controller" script block in my shopping cart widget, but I am open to other ideas also.  Thanks!!

 

When the user hovers over the X button...

7.png

After the user has clicked the X button...

8.png

 

2 REPLIES 2

Hayo Lubbers
Kilo Sage

Hi,

 

Your widget has probably also the 'angular ng-templates' in the related list. Within the options of your widget you can select the one you want to use.

 

If you create a copy of the existing template, you can easily edit the tooltip part of the button.

<button class="btn btn-clear" ng-click="c.removeItem($event, item)" data-toggle="tooltip" data-placement="top" data-container="body" title="${Remove Item} {{::item.name}}">
<i class="fa fa-times-circle btn-remove" aria-hidden="true"></i>
</button>

 

Regards,

Hayo

@Hayo Lubbers Are you telling me how to completely eliminate the tooltip so that it never displays?

I might actually do that, but what I was trying to ask was how to affirmatively Hide the tooltip after it has already been displayed on the screen.  Understand?