Splunk Search

How to remove null value from multiselect input

ND
Path Finder

Hi All,

In my dashboard, I have edit data option.

For few multiselect input option the previous value is null, on edit when I select any new value I want to remove that null value from multiselect data.

I am using JavaScript to add/ edit records from UI.

could you please help to deal with the null values. to remove null values on selection of new data.

Thanks!

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@ND 

Try by setting up blank before you set it again.

var multi = splunkjs.mvc.Components.getInstance("multiselect_tkn");

multi.val([]) 

 

Please share you sample code so we can help you further.

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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...