Dashboards & Visualizations

Can I reload the values of a form input?

Champion

Hi,

I have a form with a drop-down select which passes values (index) to a multi-select form (sourcetype). What I've noticed is that if I've chosen some sourcetypes, and then decide to change the index, the sourcetypes remain in the multi-select input, and I have to delete them manually. Is there a way to reload the sourcetype input after the index selection changes?

Hope this makes sense...

0 Karma

SplunkTrust
SplunkTrust

You have to set it up in a hierarchical manner so that your cascading parameters will operate as expected.

@Somesoni2 posted some sample code here a couple of years back -
https://answers.splunk.com/answers/112126/auto-population-of-form-drop-down-values-based-on-selected...

0 Karma

Champion

Thanks. When I saw "cascading", I recalled something similar in the Splunk Dashboard examples app, and that appears to do what I want. However, looking at the example, the description mentions using "populatingSearch", but the example doesn't actually use populatingSearch, so I'm not sure where to put it.

Anyone?

0 Karma

Ultra Champion

Would you edit or comment on your original post and include the simple xml you're using?

0 Karma