Dashboards & Visualizations

How to reset multiselect input value when parent value changed...in multislect depends tag used

9198459056
Loves-to-Learn Everything

i have parent dropdown have cc as token and in for this parent there is child multislect having different value for different country..So..it is having depends=$cc$ so how to reset the multislect when it's cc is changing..

 

Labels (4)
0 Karma

9198459056
Loves-to-Learn Everything

<input type="dropdown" token="cc" searchWhenchanged="true">
<label>Country</label>
<choice value="AU">AU</choice>
<choice value="AK">AK</choice>
<choice value="UK">UK</choice>
<change>
<condition><unset token="form.inpst"></unset></condition>
</change>
<input type="multiselect"  token="inpst" searchWhenChanged="true" depends="$cc$">
<label>
<fieldForLabel>desc</fieldForLabel>
<fieldForValue>desc</fieldForValue>
<search>
<query><lookupQuery|where cc="$cc$"|field desc
</query>
</search>
<delimiter> OR </delimiter>
<valuePrefix>InputSource=</valuePreix>
<valueSuffix>"</valueSuffix>
</input>

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

A few typos but basically correct:

<input type="dropdown" token="cc" searchWhenChanged="true">
<label>Country</label>
<choice value="AU">AU</choice>
<choice value="AK">AK</choice>
<choice value="UK">UK</choice>
<change>
<condition><unset token="form.inpst"></unset></condition>
</change>
</input>
<input type="multiselect"  token="inpst" searchWhenChanged="true" depends="$cc$">
<label></label>
<fieldForLabel>desc</fieldForLabel>
<fieldForValue>desc</fieldForValue>
<search>
<query>lookupQuery|where cc="$cc$"|fields desc
</query>
</search>
<delimiter> OR </delimiter>
<valuePrefix>InputSource="</valuePreix>
<valueSuffix>"</valueSuffix>
</input>
0 Karma

9198459056
Loves-to-Learn Everything

i used both 
1-unset the form.inpst
2-unset the inpst

both are not working 

please help

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

In the change handler for the "parent" dropdown, unset the form.childdropdown token or set it to an empty value

0 Karma

9198459056
Loves-to-Learn Everything

I unset the child token in parent dropdown..but still not working that's y asking

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you share your SimpleXML?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...