You now need to add a Grand Total field that shows the
total for the items, taxes, and shipping charges.
In the Object Library palette, click the Standard category
and then drag the Numeric Field object onto
the form below the Shipping Charge field.
Select the caption text in the Numeric Field object and type Grand Total.
In the Object palette, click the Binding tab and type grandTotal in
the Name box.
Click the Field tab and in the Appearance list, select Solid
Box.
Click the Patterns button and in the Pattern box, type $z,zz9.99.
Click the Value tab and in the Type list, select Calculated
- Read Only.
In the Script Editor, select Calculate from the Show list.
In the Script Source field, type the following calculation:
sum (total, stateTax, federalTax, shippingCharge)
Deselect the Numeric Field object to add the script to your
form.
Click to continue: Adding the Terms and Conditions section
|
|
|