function FORM_OnInit() { // initialize line FC to blank on all rows for (var nRow=0; nRow < 11; nRow++) { lawForm.setDataValue("LINE-FC","",nRow); } }
function FORM_OnBeforeTransaction(fc) { // user clicked change; based on fields with values entered, set LineFC = "C" if(fc == "C") { zeroLinesBeforeChange() for (var nRow=0; nRow < 11; nRow++) { lawForm.setDataValue("LINE-FC","",nRow); if (lawForm.getDataValue("LINE-NBR",nRow) != '') { lawForm.setDataValue("LINE-FC","C",nRow) } } } return true; }