I am trying to set the value of single line text box which is in repeating section to the the drop-down field (which is in another repeater control) on edit mode of the Nintex form with the below code but not working. Can anyone help me pls?
var isOnLoad = true;
if(isOnLoad == true)
{
var currentURL = document.location.href;
var EditMode = currentURL.indexOf('mode=1');
if(EditMode>0)
{
alert('Edit Mode');
NWF$(".VendActCostCenSAP").each(function() {
var vendCCentre=NWF$(this).val();
NWF$(this).closest(".rptmonth.nf-filler-control").parent().find(".VendarSAPActiveCostCenters").val(vendCCentre);
});
}
isOnLoad = false;
}