Dashboards & Visualizations

How to populate a dropdown based on selection from another input panel

moizmmz
Path Finder

Hi,

I would like to build a dashboard where I have two input dropdowns:
Panel A has 4 values (static inputs):
1
2
3
4

Panel B has 4 values that are selected based on the selection of Panel A:
If 1 is selected in Panel A --> W
If 2 is selected in Panel A --> X
If 3 is selected in Panel A --> Y
If 4 is selected in Panel A --> Z

Splunk version: 6.6.2

Please help.
Thanks!

Tags (1)
0 Karma

niketn
Legend

@moizmmz your question is not quite clear. Do you have two dropdowns or two panels? Or do you have a combination of both?

What do you mean by input panel in your question? Is your use case the following instead of what you have described in the question?

How to populate a dropdown based on selection from another input dropdown?

If so, please refer to Splunk Dashboard Example App from Splunkbase which has Cascading Form Input and several other useful examples for you to pick up on creation of Splunk Dashboards.

Also, please try the following SimpleXML code which generates the two dropdowns as per above use case and confirm:

<form>
  <label>Dropdown Cascading</label>
  <fieldset submitButton="false">
    <input type="dropdown" token="tokDD1" searchWhenChanged="true">
      <label>Dropdown 1</label>
      <choice value="1">1</choice>
      <choice value="2">2</choice>
      <choice value="3">3</choice>
      <choice value="4">4</choice>
      <change>
        <condition value="1">
          <set token="form.tokDD2">W</set>
        </condition>
        <condition value="2">
          <set token="form.tokDD2">X</set>
        </condition>
        <condition value="3">
          <set token="form.tokDD2">Y</set>
        </condition>
        <condition value="4">
          <set token="form.tokDD2">Z</set>
        </condition>
      </change>
    </input>
    <input type="dropdown" token="tokDD2">
      <label>Dropdown 2</label>
      <choice value="W">W</choice>
      <choice value="X">X</choice>
      <choice value="Y">Y</choice>
      <choice value="Z">Z</choice>
    </input>
  </fieldset>
</form>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

moizmmz
Path Finder

Two dropdowns. This works! Thanks!

0 Karma

moizmmz
Path Finder

could you post this as an answer?

0 Karma

somesoni2
Revered Legend

Here you go!!

0 Karma

moizmmz
Path Finder

The second dropdown also has static values. Both dropdowns are absolutely needed

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Introducing ITSI 5.0: Unified Visibility and Actionable Insights

Introducing ITSI 5.0: Unified Visibility and Actionable Insights Tuesday, July 21, 2026  |  10:00AM PT / ...

Inside Splunk Agent Observability: Understanding Agent Behavior, Tokens & Costs

Inside Splunk Agent Observability:Understanding Agent Behavior, Tokens & Costs Thursday, August 06, ...

From Data to Insight: Announcing the Winners of the Splunk Dashboard Contest

Hi Splunkers, First off, thank you to everyone who participated in our very first From Data to Insight: The ...