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',"panelA")">
<set token="tokenA">true</set>
<unset token="tokenB" />
<unset token="tokenC" />
<set token="tokenA_B">true</set>
</condition>
<condition match="match('value',"panelB")">
<set token="tokenB">true</set>
<unset token="tokenA" />
<unset token="tokenB" />
<set token="tokenA_B">true</set>
</condition>
<condition match="match('value',"panelC")">
<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.
See answer to your similar question Re: How to display panels dynamically depends on s... - Splunk Community