Skip to main content
Nintex Community Menu Bar

Selection of listview control

  • October 1, 2020
  • 1 reply
  • 13 views

Forum|alt.badge.img+2

Hi, 

 

In Nintex forms (on prem 2019) i want to select persons and populate the email to a text field. I am using a listview control and a text control. See the image. When i press the button i want to see "mark@mail.com,gary@mail.com" in the textbox.

 

I am trying javascript. I have named my listview control CSS-class 'LVCtrl' but i am not able to fetch the data in javascript. Code like below does not work. If i am able to loop through the data in the control or directly loop through the selected items then i can copy the mail per item to the text control.

 

NWF$('.LVCtrl').each(function () { alert("test1");});

NWF$('.LVCtrl .s4-itm-cbx:checked').each(function () { alert('test2');});

 

9153i623754240AA73F38.jpg

1 reply

Forum|alt.badge.img+2
  • Author
  • Rookie
  • October 1, 2020

I am a bit further. I am able to get the selected item(s). But i am not able to get the data like the name and the email. Does anybody know how to do this? The code:

 

NWF$(document).ready(function(){
});

function Getresults(){

NWF$(".LVCtrl .s4-itm-cbx:checked").each(function () {
console.log(this);

});

}