How to Remove or Hide the "Analyze It" Button from a Specific Widget
How to Remove or Hide the "Analyze It" Button from a Specific Widget
This article explains how to remove or hide the "Analyze It" button from a specific widget.
Please note if you would like to remove the button from all widgets in all dashboards, you can disable all Trends feature in the Admin tab > App Configuration > Feature Management > toggle off "Trend Advanced Models."
If you need to hide the "Analyze It" button on all widgets within a particular dashboard, please use the dashboard script from the article "Removing the "Analyze It" button from your Dashboard Widgets."
To remove or hide "Analyze It" for a particular widget, please follow the steps below:
- Open a widget in edit mode by pressing the pencil icon.
- Click the three dots menu and choose "Edit Script."
- Copy and paste the following script into the "Edit Script" section and press "Save."
widget.on("ready", function(widget) {
$('[widgetid="' + widget.oid + '"]').find('.analyze-it-button').remove()
})
4. In the widget, press "Apply" in edit mode. Then refresh the browser page to check the results.
Before:
After:
Please feel free to adjust this example script to your needs and share your solutions with us below!
We hope this helps!
Disclaimer: Please note that this blog post contains one possible custom workaround solution for users with similar use cases. We cannot guarantee that the custom code solution described in this post will work in every scenario or with every Sisense software version. As such, we strongly advise users to test solutions in their own environment prior to deploying them to ensure that the solutions proffered function as desired in their environment. For the avoidance of doubt, the content of this blog post is provided to you “as-is” and without warranty of any kind, express, implied, or otherwise, including without limitation any warranty of security and or fitness for a particular purpose. The workaround solution described in this post incorporates custom coding, which is outside the Sisense product development environment and is, therefore, not covered by Sisense warranty and support services.