Dashboards & Visualizations

Splunk Dashboard Tokens - XML issue

siva_cg
Path Finder

Hi All,

We have a Splunk distributed environment running on 6.5.2 version. I have tried to create a dashboard using some check box tokens but have not succeeded. It is throwing some errors saying that:

Warning on line 3: Node is not allowed here

Below is the xml I have been using:

As I am beginner for xml, I am unable to resolve the issue. Could you please help me in resolving this? Does it require any .css files to be stored in the app?

Thanks in advance.

0 Karma
1 Solution

sbbadri
Motivator

<form>
<label>testCb</label>
<fieldset submitButton="false">
<input type="checkbox" token="txn_indexer" searchWhenChanged="true">
<label>Select Indexer</label>
<choice value="host1">host1</choice>
<choice value="host2">host2</choice>
<default>host1</default>
</input>
</fieldset>
</form>

You are missing fieldset tag in the xml code

View solution in original post

sbbadri
Motivator

<form>
<label>testCb</label>
<fieldset submitButton="false">
<input type="checkbox" token="txn_indexer" searchWhenChanged="true">
<label>Select Indexer</label>
<choice value="host1">host1</choice>
<choice value="host2">host2</choice>
<default>host1</default>
</input>
</fieldset>
</form>

You are missing fieldset tag in the xml code

siva_cg
Path Finder

Thank you very much @sbbadri.

0 Karma

siva_cg
Path Finder
<form>  
  <label>Test</label>
  <input type="checkbox" token="tkn_indexer" searchWhenChanged="true">
      <label>Select Indexer:</label>
      <choice value="host1">host1</choice>
      <choice value="host2">host2</choice>
      <default>host1</default>
    </input>

As I am unable to add the xml code to question, I have added it as a comment here.

0 Karma

sbbadri
Motivator

@siva_cg

you are missing &lt:fieldset> and </fieldset> tag. Place your input tag between fieldset tags

0 Karma

siva_cg
Path Finder

Thank you very much @sbbadri.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...