Splunk Enterprise

Why does some Dashboard source code start with <dashboard> and others with <form>

Gregski11
Contributor

hi I am fairly new to Splunk and inherited an environment and would like to know why some of our Dashboards source code starts with the <dashboard> tag where others don't have that tag and start with the <form> tag

furthermore if I add the <dashboard> tag above the <form> tag (of course terminate it at the end of the code as well with </dashboard>) I get the following Alerts / error:

This dashboard has no panels. Start editing to add panels.

Labels (1)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

If a dashboard has user inputs (radio button, time picker, etc.) then the <dashboard> element is replaced with <form>.  You can't specify both <dashboard> and <form>.

Be sure to use version="1.1" either way.

<form version="1.1">
...
</form>
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

If a dashboard has user inputs (radio button, time picker, etc.) then the <dashboard> element is replaced with <form>.  You can't specify both <dashboard> and <form>.

Be sure to use version="1.1" either way.

<form version="1.1">
...
</form>
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...