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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...