LiveCycle Designer ES supports scripting with both FormCalc and JavaScript. Each scripting language presents its advantages that you should be aware of before you write any scripts on your form.
FormCalc is a calculation language that includes a wide range of built-in functions to simplify the most common form functionality. For example, you can use FormCalc financial functions to evaluate the size of a loan payment based on the principle amount, interest rate, and number of payment periods.
JavaScript is a more powerful and diverse scripting language, intended to give you more flexibility and leverage your existing scripting knowledge. For example, you can reuse your existing JavaScript functions in LiveCycle Designer ES to reduce the amount of new scripting you need to create.
Note:
LiveCycle Designer ES supports JavaScript version 1.6 or earlier.
Native Adobe calculation language valid in LiveCycle Designer ES and LiveCycle Forms ES
Contains a variety of useful built-in functions to reduce the amount of scripting required to accomplish common form design tasks
Provides access to the Acrobat Object Model and the JavaScript capabilities of Acrobat
Built-in URL functions for Post, Put, and Get allow web-based interactions
Compatible on all LiveCycle Designer ES and LiveCycle Forms ES supported platforms
Compatible on all LiveCycle Designer ES and LiveCycle Forms ES supported platforms
See also 

Choosing a scripting language