Avatar

Level 10

Hi David,

If you give the full reference of the object in your script then it may get confused which row you are referring to when there is more than one row.

For example:

this.rawValue = form1.Table1.Row1.mondayHours.rawValue + form1.Table1.Row1.tuesdayHours.rawValue + ...

When you add instances of a repeating row, each instance is assigned a number (zero based). So Row1 becomes:

Row1[0]

Row1[1]

Row1[2]

...

Row1[n]

If you shorten the object references to just their names, then Acrobat will assume that the script refers to the objects in that row only:

this.rawValue = mondayHours.rawValue + tuesdayHours.rawValue + ...

This should work,

Niall