when we checked checkbox in listview then i want to store it one variable on form

  • 8 February 2020
  • 1 reply
  • 12 views

Badge +1

Hello,

i am new to nintex,

i have a listview on my form pls check snapshot below for ur refrence.
its contain one columns for checkbox, i now want to store one or more columns of checked item in variable or label.

user can checked one or more item in listview then i want to store all checked items in label

how can i do it?


i think is it possible through javascript but i don't known how.

Need ur help....

 

 

6405iD2A94ACDCF61E038.png


1 reply

Badge +8

Hi Haider,

you can access the checked items using javascript the following way:

  • add a css class to your list view
  • use the following script to access the checked elements
    ​​​NWF$('.yourClassName .s4-itm-cbx:checked')​
  • you may iterate over the checked elements for example like this
    var checked = NWF$('.yourClassName .s4-itm-cbx:checked')​;
    for(var i = 0; i < checked.length; i++){
       console.log(checked[i].title);
    }
    I haven´t played with these for a long time and my notes state that the title property is only populated if it is available in your chosen view, else it contains the ID of the element

 

Reply