cancel
Showing results for 
Search instead for 
Did you mean: 
Community_Admin
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 icon Community_Admin_0-1634626087594.png  functionality on the dashboard and not just in the Filters panel.

Community_Admin_1-1634626087829.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})

 

Community_Admin_2-1634626399819.png

 

Community_Admin_3-1634626399665.png

 

  1. You can use the dashfile attached (Backtodefaultfilters.dash )

OR

Copy & Paste the below JSON code in the Editor:

Community_Admin_4-1634626399698.png
{
 "style": "",
 "script": "",
 "title": "",
 "showCarousel": true,
 "body": [],
 "actions": [
 {
 "type": "Click",
 "title": "Reset Filters"
 }
 ]
}

 

Version history
Last update:
‎10-18-2021 11:53 PM
Updated by:
Contributors
Community Toolbox

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

Need additional support?:

Community Support Request