cancel
Showing results for 
Search instead for 
Did you mean: 

Hide a tooltip from Filters

zohebakber
9 - Travel Pro
9 - Travel Pro

Hi Team, 

I want to delete/hide/remove the tooltip coming from the default filters.

Can someone help in this regard?

Thanks in advance

zohebakber_0-1680694665261.png

 

3 REPLIES 3

AssafHanina
Sisense Team Member
Sisense Team Member

Hey @zohebakber ,

Please Paste the following Script in the dashboard Script Editor 
the Script disable the 'Mouseenter' element which enable the Tooltip of the Filters

dashboard.on('widgetready', function(dash) {
const filterElement = $('.ew-i-caption');
filterElement.off('mouseenter');
});

Best Regards

Assaf

 

Assaf

SiftHealthcare
8 - Cloud Apps
8 - Cloud Apps

Hello, I am wondering if there is a way to apply this globally or only for viewers.
Thanks!

hey @SiftHealthcare ,

the request is to run the script based on UserRole. 
the user role of each user can be achieved with Prism global variable.

the following dashboard script, hide the tooltip only for Consumers(viewers) type of users, but more type of users can be added into role_name variable. 

dashboard.on('widgetready', function(dash) {
     const role_name = ['consumer']; /* define the rolenames to exclude*/

    if (role_name.includes(prism.user.roleName)) {
              const filterElement = $('.ew-i-caption');
              filterElement.off('mouseenter');
         }
});

Assaf