I need to add logic to a field in a detail table. When I convert to a script, I am getting a loop error. I am not sure how to fix it?
What I am trying to do is when the first row in the detail table is equal to Personal Property, I need to use a different address field in the data (“field2”). All other rows can use the “field” address. There is a maximum of 12 rows
var field = record.tables.Properties[‘TPAddress1’];
var field2 = record.fields[‘DelAddr’];
var field3 = record.tables.Properties[‘Tax1Description’];
for (var i = 1; i < 12; i++) {
if ((i=1) && (field3 = ‘Personal Property’)) {
this.text(field2);
}else{
this.text(field);
}
}