Inserting the Grand Total field

You now need to add a Grand Total field that shows the total for the items, taxes, and shipping charges.

  1. In the Object Library palette, click the Standard category and then drag the Numeric Field object  onto the form below the Shipping Charge field.

  2. Select the caption text in the Numeric Field object and type Grand Total.

  3. In the Object palette, click the Binding tab and type grandTotal in the Name box.

  4. Click the Field tab and in the Appearance list, select Solid Box.

  5. Click the Patterns button and in the Pattern box, type $z,zz9.99.

  6. Click the Value tab and in the Type list, select Calculated - Read Only.

  7. In the Script Editor, select Calculate from the Show list.

  8. In the Script Source field, type the following calculation:

    sum (total, stateTax, federalTax, shippingCharge)

  9. Deselect the Numeric Field object to add the script to your form.

Click to continue: Adding the Terms and Conditions section

// Ethnio survey code removed