cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

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

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....

 

 

image.png

Labels: (1)
0 Kudos
Reply
1 Reply
Highlighted
Nintex Newbie

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

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

 

0 Kudos
Reply