These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Automatic numbering of rows or subforms?

Sterre
Registered: Jan 29 2008
Posts: 17

I want to make a form where users can add and remove subforms/table rows, and where every subform/table row is numbered automatic in the first column.

Example:
1 TEXT
1.1 text
1.2 text
1.3 text

2 TEXT
2.1 text
2.2 text
2.3 text
2.4 text

3 ETC.
3.1 etc.

I want the numbers to be calculated automatic.

I know how to make the add/remove subform/table row. That isn't the problem. I just don't know how to make the fields calculate the numbering.
And I don't know if the whole thing should be a table, or that I have to add a subform (with a table included) for every whole number, with the whole number row as a header and the following numbers as rows to be added.

Can anyone help me with this?

Thanks in advance!

Sterre

My Product Information:
LiveCycle Designer, Windows
beachbumbali11
Registered: Mar 5 2008
Posts: 74
Well i dont know how to do the subform table other than making a bunch of text objects in one subform with an expandable subform below it so maybe you could help me out with that one but the way i do it is pretty simple. Like i said not sure about making a real table in livecle but would love to know how to i have to sub forms contained in another subform flowed top to bottom yada yada.
then in the first cell (however not a real cell just a numeric field i placed on the left with the data fields on the right with no caption)
numeric text doenst matter best to make it read only either way
under calclate javascript enter this.

this.parent.index;
if you want to start the numbering at 1 add this
this.parent.index+1;

to clean up user input i recomened selecting the subform itself from the hierachy view and adding this under the initilize state also java script

this.min.occur ="0"

this way they can alway delete all the "rows" and start the numbering over

hope that helps

please do tell me about this table thing as i am new to designer also