Dashboards & Visualizations

Submit node not allowed inside form

Dy4
New Member

Splunk gives validation warnings that unknown node submit not allowed here. Is there's any fixes for this

<form version="1.1" theme="dark">
<!-- Fieldset for dropdown input -->
<fieldset submitButton="true" autoRun="true">
<input type="dropdown" token="A_or_B" searchWhenChanged="false">
<label>Select A or B</label>
<default>A</default>
<choice value="A">A</choice>
<choice value="B">B</choice>
</input>
</fieldset>

<!-- Submit block, should be placed directly inside form -->
<submit>
<condition match="$A_or_B$ == &quot;A&quot;">
<set token="tokenX">1</set>
<set token="tokenY">2</set>
</condition>
<condition match="$A_or_B$ == &quot;B&quot;">
<set token="tokenX">3</set>
<set token="tokenY">4</set>
</condition>
</submit>

Microsoft 365 App for Splunk 

Labels (2)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @Dy4 

There can only be a single Submit button which should be enabled in the fieldset by setting submitButton=true in the <fieldset> tag. 

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...