Making a basic invoice pdf and cannot get my total field to set the value right.
var total
{
for(i2 = 0; i2 < 18; i2++)// Itteration through Lines
{
var itemVolume = String(this.getField('105' + 'Qu' + i2).valueAsString); // Declares Item volume variable and targets each lines volume field
if(itemVolume > 0)// Checks for values of 1 or greater
console.println(itemVolume)
{
total + (this.getField('105' + 'Pri' + i2)).valueAsString;
this.getField("105Total").valueAsString = total
}
}
}
My Field names are 105PriX and 105QuX X being 0-18 It is currently just setting my total field to the word [Object Field] if im not mistaken i should be solving that with .valueAsString? Would appreciate any and all help thank you very much!
