Hi,
I've created a dynamic table (with add/ remove buttons) in which one column should have an incremented number which should be automatically added. So if I click on the add-button, I'd like to have each row numbered with an incremented value. Anyone can tell me how to do this?
thanks,
mading
//Use this in the calculate event of a text field in a table row or sub form. As new rows are added they will be auto numbered.
var myNum = table row or subform.index;
this.rawValue = myNum + 1;
//NOTE: You must also use the recalculate method when you are removing rows/sub forms so the number in the fields will readjust.
xfa.form.recalculate(1);
StevenD