Dashboards & Visualizations

How to add check boxes to each row in CustomViz Multiselect Table?

ajayabburi508
Path Finder

Hi Every one ,

I am able to add check boxes to the each row of the table using https://splunkbase.splunk.com/app/4362/.

but here when i am browsing between two pages ,it is not working.

example : i selected 3 rows in first page 

in second page i  selected 2 rows then from here i go back to first page .

in first page i am not able to see selected 3 rows.

can someone help me here? 

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@ajayabburi508 

I think you got the answer from below my comment.

https://community.splunk.com/t5/Splunk-Search/How-to-insert-checkboxes-in-a-simple-statistics-result...

 

 

Can you please replace the below code in JS?

Old:

 

 

var a = $('<div>').attr({"id":"chk-sourcetype"+cell.value,"value":cell.value}).addClass(checkbox_css).click(function() {

 

 

 

New:

 

 

var checkbox_css = selected_values_array.includes(cell.value) ? "checkbox checked" : "checkbox";
            var a = $('<div>').attr({"id":"chk-sourcetype"+cell.value,"value":cell.value}).addClass(checkbox_css).click(function() {

 

 


If this resolved your issue then can you please accept it to close this question?

 

Thanks
KV
If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.

 

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...