Dashboards & Visualizations

How to write condition check for conditional panels ?

Jouman
Path Finder

Hi all,

I would like to display panels only if they are selected by multi-select dropdown.
So I use <condition match=....> to compare the input string.
Becuase users may enter more than one keywords for panels, I want to make the condition to allow multiple input values.
ex. if users select Panel A and Panel B, then both panels should be shown, and panel C is hidden.

But my code doesn't work as I expected. No matter I choose Panel A or Panel B from dropdown, none of the panels are displayed.

Could anyone help to check which part of codes I wrote is wrong?

<choice value="panelA">Panel A</choice>
<choice value="panelB">Panel B</choice>
<choice value="panelC">Panel C</choice>
<change>
<condition match="match('value',&quot;panelA&quot;)">
<set token="tokenA">true</set>
<unset token="tokenB" />
<unset token="tokenC" />
<set token="tokenA_B">true</set>
</condition>
<condition match="match('value',&quot;panelB&quot;)">
<set token="tokenB">true</set>
<unset token="tokenA" />
<unset token="tokenB" />
<set token="tokenA_B">true</set>
</condition>
<condition match="match('value',&quot;panelC&quot;)">
<set token="tokenC">true</set>
<unset token="tokenA" />
<unset token="tokenB" />
<unset token="tokenA_B" />
</condition>

...
<row>
<panel depends="$tokenA$, $tokenA_B$,">
<title>Table 1</title>
......

Thank you.

Labels (1)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...