I have been working with the script samples on pages 112-116 in section 13 of the LiveCycle Scripting Basics document. I made some changes in that I added a text field with a floating field.
Subform {TextField}
So I get this when the form renders.
Subform 1
Subform 2
Subform 3
etc.
There are some buttons that will add a new instance of the subform a the bottom of the list, one that will add a new instance of the subform below the subform in which the button resides and some buttons that will move a respective subform up or down.
I want to be able to have the value in the floating field recalculate as subforms are added or deleted and moved up or down. I'm not sure where to put the recalulate script (xfa.form.recalculate(1)). Or if I can even do something like this.