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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...