Turn off popup Hints in Client Controller script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2022 07:34 AM
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...
After the user has clicked the X button...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2022 08:02 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 06:01 AM
@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?