var rowNum = this.parent.index +1;
var rowNum = this.parent.parent.index;
In this tutorial I show how text insertion can be done the right way. Many forms I see instert text as if the form was made to be filled out on paper. Hopefully, this lesson can help you bring your pdf forms up to date.
var v_oldtext = FORM.Main.txtInsert.rawValue;
var v_newtext = v_oldtext.replace(“[Address Here]”, this.rawValue);
FORM.Main.txtInsert.rawValue = v_newtext;
This tutorial demonstrates how a LiveCycle Designer PDF can be made to act and feel like a Word Processor using nested subforms with properly set form flow.