Hi there,
I'm having an issue implementing a field copy from two single line fields into two fields in my table.
The use case is that the customer inputs a job number and nominal number; these then get copied to the fields in the table, the columns job number and nominal number. This is because for 90% of the rows, these will be the same.
The issue I'm having is that on add new row, it should copy the job no and nominal again, which is fine and works. The issue is that if any values in the above rows have changed (which they might), the values get copied back up all the way and over write these fields. How can I target only the rows added by the "add new row" going forward? I presume it's something to do with the next tr but my tests haven't proven successful.
//add new row button click $("#q20").on('click',function(){ var jobNo=$('#Field6').val(); $(".item_job input").val(jobNo); //without the lookup complete the value will be cleared when the jobNo lookup triggers $(document).on("lookupcomplete", function (event) { var nomNo=$('#Field12').val(); $(".item_nom input").val(nomNo); });