LiveCycle Workbench ES Help | |||
| Creating Your First LiveCycle ES Application > Creating a Form Design > Creating a 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:
if (PropertyPrice.rawValue > DownPayment.rawValue)
{
this.rawValue = PropertyPrice.rawValue - DownPayment.rawValue;
}
else
{
this.rawValue = 0;
}
to ensure that there are no syntax errors.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.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/wb_help/00000442.html