This script has not been tested in LiveCycle but it works in Acrobat. After a through compatibility search of the non-compatible scripts from Acrobat to LiveCycle, I did not see this function on the non-compatible list. Try it.
How to change the calculation order of fields in a document.
When a computable text or combo box field is added to a document, the field’s name is appended to the calculation order array. The calculation order array determines in what order the fields are calculated. The calcOrderIndex property works similarly to the Calculate tab used by the Acrobat Form tool.
Example var a = this.getField("newItem"); var b = this.getField("oldItem"); a.calcOrderIndex = b.calcOrderIndex + 1;
In this example, the “newItem” field was added after the “oldItem” field. The script changes the calcOrderIndex property of the “newItem” field so that it is calculated before the “oldItem” field.
My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.
How to change the calculation order of fields in a document.
When a computable text or combo box field is added to a document, the field’s name is appended to the calculation order array. The calculation order array determines in what order the fields are calculated. The calcOrderIndex property works similarly to the Calculate tab used by the Acrobat Form tool.
Example
var a = this.getField("newItem");
var b = this.getField("oldItem");
a.calcOrderIndex = b.calcOrderIndex + 1;
In this example, the “newItem” field was added after the “oldItem” field. The script changes the calcOrderIndex property of the “newItem” field so that it is calculated before the “oldItem” field.
My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.