Dashboards & Visualizations

Reset dropdowns in dashboard studio

Poojitha
Communicator

Hi,

I have a dashboard created in dashboard studio . This contains two drop downs (Country and State).. Both of them are interdependent on each otherc to display values and has default value set to * (All).

When I select value from country dropdown , it loads its states in dropdown 2. 

Poojitha_0-1722629872472.png

But when I do the selection second time, Example -  USA -->  India. States will still have California in display. But on clicking  states dropdown later,t I can see India related states with California as first value.

Poojitha_1-1722630059317.png


Is there a way that dropdown selection can be reset automatically based on other dropdown value.

Example, when I select USA , states of USA must be displayed in states dropdown. When I change selection from USA to India, states dropdown should be either All or first value of Indian state. 

Please help on this.

Regards,
PNV
 






Labels (1)
0 Karma

KendallW
Contributor

Hi @Poojitha try using "unset" in the country dropdown, so that whenever it is changed, the state dropdown will first reset before populating.

E.g. in the country dropdown xml:

 

<change>
    <unset token="state"></unset>
</change>

 

 

0 Karma

Poojitha
Communicator

@KendallW  Thanks for your response.

The XML tags you provided works in classic dashboard. Do you know how we can do same in dashboard studio ?
Regards,
PNV

gm-gs
Engager

@Poojitha were you ever able to get this sorted out?

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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

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 ...