In Nintex form repeating section, i want current date in textbox on click of checkbox button.
As recommended in other blogs, i used class and not id. But now issue is when i click on add new row and click on checkbox, it changes date for all the previous textboxes as well because of same class getting applied to all the textboxes. Below is my code for it. RS1 is class name for checkbox inside repeating section and RS1NAME is class name for textbox inside same repeating section.
Please suggest.
NWF$(".RS1 input[type='checkbox']").change(function(){
if(NWF$(this).prop('checked')){
var today = new Date().toLocaleDateString();
NWF$(".RS1NAME").val(today);
});