Dashboards & Visualizations

Reset dropdowns in dashboard studio

Poojitha
Path Finder

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
Path Finder

@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

Get Updates on the Splunk Community!

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...

Out of the Box to Up And Running - Streamlined Observability for Your Cloud ...

  Tech Talk Streamlined Observability for Your Cloud Environment Register    Out of the Box to Up And Running ...

Splunk Smartness with Brandon Sternfield | Episode 3

Hello and welcome to another episode of "Splunk Smartness," the interview series where we explore the power of ...