Dashboards & Visualizations

how to hide panel in dashboard

sravankaripe
Communicator

Please help me with sample code to hide/show panel in a dashboard.

when ever the user want to see the panel it should allow the user to see panel whenever he clicks the radio button and hide the panel whenever the user unchecks it.

0 Karma
1 Solution

somesoni2
Revered Legend

There are several examples in Splunk Answers (results of quick search 'Splunk hide show panels')

Based on result count
https://answers.splunk.com/answers/218623/how-to-hide-panels-with-no-results-from-a-dashboar.html

Based on a dropdown (can be easily converted to checkbox)
https://answers.splunk.com/answers/188709/how-to-display-dashboard-panels-dynamically.html

View solution in original post

aaraneta_splunk
Splunk Employee
Splunk Employee

@sravankaripe - Did one of the answers below help provide a solution your question? If yes, please click “Accept” below the best answer to resolve this post and upvote anything that was helpful. If no, please leave a comment with more feedback. Thanks.

0 Karma

woodcock
Esteemed Legend

You need to put use the depends directive on the shifting panel and have it depend on a token that you set and unset with the radio button control.

0 Karma

somesoni2
Revered Legend

There are several examples in Splunk Answers (results of quick search 'Splunk hide show panels')

Based on result count
https://answers.splunk.com/answers/218623/how-to-hide-panels-with-no-results-from-a-dashboar.html

Based on a dropdown (can be easily converted to checkbox)
https://answers.splunk.com/answers/188709/how-to-display-dashboard-panels-dynamically.html

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...