Java Script Formula Help
I am trying to write a formual to sum up fields based on a another field.
Column 2 is named "secured or unsecured" and Column 2 is the called Current Bal.
I need to have a formula that adds up unsecured and then adds up secured.
I did get a formual for the first column to work but I dont know how to get it to look at all those columns and add them based on secured or unsecured
This is the formula that worked but it only looked at the first row in that column. I need it to look at all five and sum the secured and the unsecured seperate.
var f = this.getField("E Current Bal_1");
var g = this.getField("E Secured orUnsecured_1").value;
if (g == "Secured") event.value = f.value;
else if (g == "Unsecured") event.value = 0;


