LiveCycle Workbench ES Help |
|||
| Creating Your First LiveCycle ES Application > Creating a Form Design > Creating a new form design > Adding calculations to your form design | |||
You will make a form more interactive by adding a calculation to your form design. You add JavaScript™ by using the Script Editor to calculate the mortgage amount in your form design.
Note: You may need to drag the bottom of the Forms toolbar to expand the area for the Script Editor.
To add a calculation to the mortgage amount:The Script Editor should look like this illustration:
if (PropertyPrice.rawValue > DownPayment.rawValue)
{
this.rawValue = PropertyPrice.rawValue - DownPayment.rawValue;
}
else
{
this.rawValue = 0;
}
to ensure that no syntax errors exist.You have added a calculation to the Mortgage field.
You have finished the form design. The following illustration shows how your form looks in Design View.
Adobe LiveCycle ES Update 1
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/8.2/wb_help/000057.html