Dashboards & Visualizations

How to hide input panels based on other input panels?

Braagi
Explorer

As the title says, I am attempting to hide input panels based on the input provided in another input panel.
As it stands, the tokens get set correctly, but the panels are still displayed.
Been working on this a while now and still can not see what the issue is...

Code :

<input type="time" token="Timefield1">
      <label></label>
      <default>
        <earliest>-4h@m</earliest>
        <latest>now</latest>
      </default>
    </input>

    <input type="radio" token="Basic" searchWhenChanged="true">
      <label>What type of monitoring?</label>
      <choice value="0">Whole Range (noisy)</choice>
      <choice value="1">Specific IP</choice>

      <change>
           <condition label="Whole Range (noisy)">
               <set token="theVar">|search (("Stuff and Things"))</set>
               <unset token="show_input1"></unset>
               <unset token="show_input2"></unset>
               <unset token="show_input3"></unset>
           </condition>
           <condition label="Specific IP">
               <set token="show_input1">1</set>
               <unset token="theVar"></unset>
           </condition>
      </change>

    </input>

    <input type="radio" token="Basic3" searchWhenChanged="true" depends="show_input1">
      <label>Known Server or Ad-Hoc search?</label>
      <choice value="1">Known Server</choice>
      <choice value="0">Manual Entry</choice>

      <change>
           <condition label="Manual Entry">
               <set token="show_input3">1</set>
               <unset token="show_input2"></unset>
               <unset token="theVar"></unset>
           </condition>
           <condition label="Known Server">
               <set token="show_input2">1</set>
               <unset token="show_input3"></unset>
               <unset token="theVar"></unset>
           </condition>
      </change>

    </input>

    <input type="dropdown" token="theVar" searchWhenChanged="true" depends="show_input2">
      <label>Known Server list</label>
      <fieldForLabel>IP</fieldForLabel>
      <fieldForValue>IP</fieldForValue>
      <search>
        <!-- Change the CSV when needed -->
        <query>| inputlookup NAME.csv</query>
        <earliest>-15m</earliest>
        <latest>now</latest>
      </search>
    </input>

    <input type="text" token="theVar" depends="show_input3">
      <label>IP of Interest</label>
    </input>
0 Karma
1 Solution

niketn
Legend

@Braagi, you are using show_input1 etc as tokens hence depends should have them between two dollar signs i.e. $show_input1$. So, depends="show_input1", depends="show_input2" and depends="show_input3" in your code should actually be

depends="$show_input1$"

depends="$show_input2$"

depends="$show_input3$"

Please try out and confirm!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

@Braagi, you are using show_input1 etc as tokens hence depends should have them between two dollar signs i.e. $show_input1$. So, depends="show_input1", depends="show_input2" and depends="show_input3" in your code should actually be

depends="$show_input1$"

depends="$show_input2$"

depends="$show_input3$"

Please try out and confirm!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

Braagi
Explorer

Oh my god. Five hours I worked on that and never saw it. Even had someone else look it over and they didn't see it...

Thank you for the assistance!

0 Karma

niketn
Legend

@Braagi yes sometimes tiniest details miss our eyes 🙂 Happy Weekend!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...