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.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...