Expand my Community achievements bar.

Javascript not running in repeating rows!

Avatar

Level 3

I have a form that contains a table.  YOu can add rows to the table, or you can duplicate the table all together.  I have simple javascript

var

itemPos = PreviousHrs.resolveNode("Table1["+this.parent.index+"]").resolveNode("Prev24Row2_3Sec["+this.parent.index+"]").resolveNode("Row2["+this.parent.index+"]").TO.selectedIndex;

xfa.host.messageBox("itempos: "

+itemPos+" parentindex:"+this.parent.index)

Then I just simple popup a message stating the positions.  This works fine on the first row when I exit out of the field that contains the javascript.  However, when you add another row.  The code no longer will display the message on the newly added rows.  However, if you go to row one, it still displays the message after you exit the field.

1 Reply

Avatar

Level 3

Does anyone have any suggestions?