cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
This article will explain how to create reset to default filters button in BloX
This helps in case you want to provide this iconmceclip0.png functionality on the dashboard and not just in the Filters panel.
resetfilters.gif
1. Create a new custom action with the below code: 
 *Make sure you're naming the action 'Click' if you're using the attached dashfile in section 2
var dashboard = payload.widget.dashboard
dashboard.filters.update(dashboard.defaultFilters,{refresh:true})
createaction.pngcodeaction.png
2. You can use the dashfile attached (Backtodefaultfilters.dash )
OR
Copy & Paste the below JSON code in the Editoreditor.png
{
 "style": "",
 "script": "",
 "title": "",
 "showCarousel": true,
 "body": [],
 "actions": [
 {
 "type": "Click",
 "title": "Reset Filters"
 }
 ]
}
Version history
Last update:
‎03-02-2023 08:51 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

Sisense Privacy Policy