Dashboards & Visualizations

drop down list should show based on value of other dropdownlist

Jasmine
Path Finder

I have two dropdownlist. Second dropdown list should show/hide based on first drop down list value. (based on two values)  With one value works fine.

<input type="dropdown" token="sourceToken" depends="$t1_token$" searchWhenChanged="false">

I have tried as below for two values : But it not working

<input type="dropdown" token="sourceToken" depends="$t1_token$,$t2_token$" searchWhenChanged="false">

<input type="dropdown" token="sourceToken" depends="t1_token,t2_token" searchWhenChanged="false">

it is not working. Please advise

Labels (1)
0 Karma
1 Solution

Jasmine
Path Finder
we are using 9.0.4

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The first version 

depends="$t1_token$,$t2_token$"

should work (it does for me). Which version of Splunk are you using?

0 Karma

Jasmine
Path Finder
we are using 9.0.4
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Just to clarify, the depends attribute works on the presence / absence of a token having a non-null value, not on a specific value of the token. Without the rest of the dashboard, it is not clear whether you are using tokens in this way.

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...