After you have created form variables, you only need to reference the variable name in your calculations and scripts in order to obtain the value of the variable.
Caution: When naming variables, you should avoid using names that are identical to the names of any XML Form Object Model properties, methods, or object names. For information about XML Form Object Model properties, methods, and objects, see Scripting Reference.
In FormCalc, you can access the variable values in the same manner that you access field and object values. In this example, the values are assigned to three separate fields:In JavaScript, you reference variable values by using the .value property instead of the .rawValue property that is used for field and object values, as shown in this example: