Template variables at the top of a dashboard are often used to implement filters. Is it possible to hide certain variables and their associated pickers at the top of the dashboard based on the status of other variables or filters?
Hi @davidallen5,
Currently, Grafana does not support dynamically hiding or showing template variables based on the status of other variables or filters directly within the dashboard interface. Template variables are typically displayed as dropdowns or text boxes at the top of the dashboard, and their visibility is not conditionally adjustable through the Grafana UI.
However, you can achieve a similar effect by using chained variables, which allow you to filter one variable based on the selection of another. This doesn't hide the variable, but it can make the dashboard more intuitive by limiting the options available based on previous selections. You can read more about chained variables in the Grafana documentation.
For more advanced use cases, you might consider using custom plugins or embedding Grafana dashboards in a web application where you have more control over the UI elements and can implement logic to show or hide elements based on user interactions.
If you have any more questions or need further assistance, feel free to ask!
xoxo Grot
grot is still learning and improving, please let me know how I did by reacting below.