Dashboards & Visualizations

XML Form Error

edschembor
Path Finder

Hi all,

I'm getting the following error "Extra content at the end of the document" with the following form XML:

<form>
  <label>Monitoring</label>

  <fieldset autoRun="false" submitButton="true">

    <input type="time" searchWhenChanged="false">
      <default>
        <earliestTime>-7d@h</earliestTime>
        <latestTime>now</latestTime>
      </default>
    </input>

    <input type="dropdown" token="server">
      <label>Choose a Server Set:</label>
      <prefix>tag=</prefix>
      <choice value=”Prod”>Production</choice>
      <choice value=”QA”>QA</choice>
      <choice value=”Dev2”>Dev2</choice>
    </input>

  </fieldset>

  <row>
    <panel>
..... etc

It works fine without the dropdown, but the dropdown creates this issue. I've looked at it for a while and just cannot find the issue. Any suggestions?

Thanks!!

Tags (3)
0 Karma
1 Solution

somesoni2
Revered Legend

I guess the double quotes used for dropdown value is the problem. I corrected it and following work for me.

<form>
  <label>Monitoring</label>

  <fieldset autoRun="false" submitButton="true">

    <input type="time" searchWhenChanged="false">
      <default>
        <earliestTime>-7d@h</earliestTime>
        <latestTime>now</latestTime>
      </default>
    </input>

    <input type="dropdown" token="server">
      <label>Choose a Server Set:</label>
      <prefix>tag=</prefix>
      <choice value="Prod">Production</choice>
      <choice value="QA">QA</choice>
      <choice value="Dev2">Dev2</choice>
    </input>    
  </fieldset>
...
...
</form>

View solution in original post

somesoni2
Revered Legend

I guess the double quotes used for dropdown value is the problem. I corrected it and following work for me.

<form>
  <label>Monitoring</label>

  <fieldset autoRun="false" submitButton="true">

    <input type="time" searchWhenChanged="false">
      <default>
        <earliestTime>-7d@h</earliestTime>
        <latestTime>now</latestTime>
      </default>
    </input>

    <input type="dropdown" token="server">
      <label>Choose a Server Set:</label>
      <prefix>tag=</prefix>
      <choice value="Prod">Production</choice>
      <choice value="QA">QA</choice>
      <choice value="Dev2">Dev2</choice>
    </input>    
  </fieldset>
...
...
</form>
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...