How to Restart Automatic Table Numbering in Adobe LiveCycle Designer
Question details
The user needs to reset or restart the automatic table row numbering for newly added table instances in an Adobe LiveCycle Designer form.

- Product
- Adobe LiveCycle Designer
- Device & OS
- not provided
- Scenario
- Creating dynamic PDF forms with JavaScript to number table rows automatically.
- Observed behavior
- The numbering continues sequentially across newly added table instances instead of restarting at 1 for each new table instance.
Ensure you have access to the JavaScript editor within Adobe LiveCycle Designer and understand the basics of referencing table row instances (SOM expressions).
Adjust the Form Script and Table-Instance Indexing
Modify the JavaScript in your table row's calculation event to reference the current table instance so the count restarts appropriately.
In Adobe LiveCycle Designer, automatic numbering can be achieved using the 'index' property of the row. However, if multiple table instances exist, a simple index will count all rows across all tables if not properly scoped.
To fix this, you must explicitly scope your script to the current table instance, ensuring the row index resets to 1 for each newly generated table.
Open your form in Adobe LiveCycle Designer and display the Script Editor from the Window menu.
Select the specific table row or cell where you want the automatic number to appear.
In the Calculate event, enter a script that references the current row index within its specific parent table instance (e.g., using `this.parent.index + 1`). Ensure the language is set to JavaScript.
Because LiveCycle Designer uses specialized XFA architecture, complex indexing issues are best resolved by sharing your exact form hierarchy in the dedicated Adobe LiveCycle Designer community forum rather than general Acrobat forums.

Discover a Lightweight and Free PDF & Office Alternative
While Adobe LiveCycle Designer handles complex enterprise XFA forms, many everyday document and standard PDF form needs can be managed efficiently with WPS Office. It provides robust PDF viewing, filling, and editing features as part of a complete, free Office suite.

Frequently Asked Questions
Why does my table row numbering continue sequentially in LiveCycle?
By default, if your JavaScript does not properly reference the parent table instance, it will count all row instances globally across the entire form. You need to scope the index property to the specific table object.
Can I edit Adobe LiveCycle Designer XFA forms in standard PDF editors?
Dynamic XFA forms created in LiveCycle Designer usually require specific Adobe software (like Acrobat or Reader) to be filled out properly. Standard PDF editors often cannot modify the underlying XFA structure.
Where can I get specialized help for LiveCycle Designer scripts?
Since it is an enterprise product, the best place for specialized script troubleshooting is the Adobe LiveCycle Designer Community forums, as standard Acrobat forums do not cover XFA development.




