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
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