Skip to main content

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

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);


});


}


Reply