Issue with repeating section and custom java script


Badge +1

I have this form below

204732_pastedImage_1.png

On change for the Per Diem $70 the three drop-down menus change to claim. Issue is when you add a new row the custom Java script doesn't work.(Code follows)

 

 

function SetContolValue(control_id,
text_value){

 

NWF$('#'+control_id).val(text_value);

 

return  text_value;

 

}

 

 

 

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

 

  NWF$('#'+CHECKBOX_ID).change(function() {
SetContolValue(LIST_ID, 'Claim');
SetContolValue(LIST_ID2, 'Claim');
SetContolValue(LIST_ID3, 'Claim');

 

 });

 

});

 

Does anyone know how nintex changes the name controls when adding a new row? Would a for i loop work to increment this?

 

 

Thanks for anyone's time in advance!


2 replies

Badge +1

I have looked at the HTML code and compared the repeating sections if this will help in finding a solution to the issue.

https://www.diffchecker.com/UhrEDd4T

Userlevel 4
Badge +7

Hi Kevin Robbins

Have a look at this, it should point you in the right direction

Reply