Splunk Dev

How to set multiple values in the Multiselect dropdown token value

Thenmozhi1
Engager

Hi, 

I am trying to change/control many multi-select dropdowns by one Master_multi-select dropdown value/checks.

So I am trying to use more than one value in the set-token tag. But it is not working, if I give 2 values in the Set-token tag. then it will get merge but if I give a single value then it is working fine.

I tried multiple ways like double quotes, single quotes., etc but I could not find the solution

 

Please find the below example and help me to find a solution.

 

<set token="form.Filter1"> "new", "rejected" </set>

out put will be like below. 

Thenmozhi1_0-1633101568540.png

But the expectation is like below

Thenmozhi1_2-1633101857075.png

 

Example in multiselect:-

<input type="dropdown" token="MasterFilter_Token">
<label>MasterFilter</label>
...,

<change>
<condition>

<set token="form.Filter1"> "new", "rejected", "closed" </set>

...,

</condition>
</change>

...,
Thanks in Advance!!!

 

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Thenmozhi1 

 

Try this on change of first dropdown.

<eval token="form.Filter1">split("new,rejected",",")</eval>

 

In case the values are from  the same dropdown then try this.

<eval token="form.Filter1">'form.Filter1'</eval>

 

 

Thanks
KV
▄︻̷̿┻̿═━一   😉

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...