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!

Unlock New Opportunities with Splunk Education: Explore Our Latest Courses!

At Splunk Education, we’re dedicated to providing top-tier learning experiences that cater to every skill ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...