I need to auto-populate a form with existing data from a SharePoint 2016 list. I am using a Custom Javascript to fill the form. I have a repeating section that I need to add to the control on different rows. I've tried using the script: NWF$(".TAP_CSS").find('a').click(); but it doesn't add a row.
Here is what I want to do (using the (a).click(), if it worked)
var varTAP_FLAG = NWF$('#' + TAP_FLAG_JAVA).val();
NWF$('#' + WATER_TAP_FLAG_JAVA).val(varTAP_FLAG);
var varTAP_AMT = NWF$('#' + TAP_AMT_JAVA).val();
var varTAP_AMT = varTAP_AMT/100+".00";
NWF$('#' + WATER_TAP_AMT_JAVA).val(varTAP_AMT);
NWF$(".TAP_CSS").find('a').click();
var varTAP2_FLAG = NWF$('#' + TAP2_FLAG_JAVA).val();
NWF$('#' + WATER_TAP_FLAG_JAVA).val(varTAP2_FLAG);
var varTAP2_AMT = NWF$('#' + TAP2_AMT_JAVA).val();
var varTAP2_AMT = varTAP2_AMT/100+".00";
NWF$('#' + WATER_TAP_AMT_JAVA).val(varTAP2_AMT);
Some help would be greatly appreciated.
Ray Donovan