The scripts that the Action Builder feature generates sometimes work incorrectly if the XML schema and objects in a form are named using terms that are reserved for XFA keywords or property names. XFA has reserved keywords (any word that is part of the XFA grammar) or properties such as x, y, w, h. When you use these names in a script, they can resolve to either a local variable or to the XFA property. Depending on which script engine is used (Acrobat's EScript or the Server's ExtendScript), you see different results in calculations because of the order in which the resolution is made.
Try either of these two solutions:
- Rename the elements in the schema file, and generate fields from the schema.
- Leave the XML schema as it is. Rename any fields generated by the XML schema that contain reserved words. Ensure that the fields are bound to those elements in the schema.