goodmorning
i have a form with 5 rows and each row has 20 fields i wrote a javascript to reset and to give an alert "are you shure?" do you know a way to select all the rows without typing each one?
thanks
goodmorning
i have a form with 5 rows and each row has 20 fields i wrote a javascript to reset and to give an alert "are you shure?" do you know a way to select all the rows without typing each one?
thanks
For example, prefix all the field names in the first row with "Row1", so the names look like this.
Row1.Text1, Row1.Text2, Row1.DropDown3, Row1.Check4, etc.
Now all the fields in Row1 are grouped as "Row1" and are reset by referring to the group name.
this.resetForm(["Row1"]);
The grouping can be extended to multiple levels. So the entire table is grouped by prefixing all the field in the table with the same name. For Examples
Table1.Row1.Text1, Table1.Row1.Text2, Table1.Row1.DropDown3, Table1.Row1.Check4, etc.
Table1.Row2.Text1, Table1.Row2.Text2, Table1.Row2.DropDown3, Table1.Row2.Check4, etc.
// Reset Row 2
this.resetForm(["Table1.Row1"]);
// Reset the entire table
this.resetForm(["Table1"]);
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script