Forum Discussion

GSSC's avatar
GSSC
Cloud Apps
10-15-2024
Solved

How do I lock a dashboard filter through dashboard script?

Hi, I need to lock the first dashboard filter using a dashboard script. Is this possible? Thanks
  • harikm007's avatar
    10-15-2024

    Hi GSSC ,

    Of course, it's possible. Here is the script:

    dashboard.on('initialized', function(dash, args){
    	dash.filters.$$items[0].locked = true		 
    			 
    })

    -Hari