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!

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...

Ready, Set, SOAR: How Utility Apps Can Up Level Your Playbooks!

 WATCH NOW Powering your capabilities has never been so easy with ready-made Splunk® SOAR Utility Apps. Parse ...

DevSecOps: Why You Should Care and How To Get Started

 WATCH NOW In this Tech Talk we will talk about what people mean by DevSecOps and deep dive into the different ...