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!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...