Manipulating Outlook Form Script

This section explains the basic actions you need to know in order to add script to a form.

Opening the Script Editor

As with all Microsoft® Outlook® forms, there is only one script for the entire LitCrit form, shared by all pages and page versions.

To open the script editor

  1. Open the form. See Opening a Form in Design Mode.
  2. Click View Code on the Form menu. The script editor is opened, and any script code already present is displayed.

The script responds to actions based on the form's named controls. You can see this script at EnhancedLitCrit.

Saving the Form's Script

Just like most of the other controls visible while you are developing a form, the Save button you see represents the Save button displayed on the form's user interface at run time. It is not for developers to use to save the form being developed.

You can save the form as an .oft (Outlook Template) file to a folder in the file system. To do this, click Save As on the File menu, choose a folder, and click Save. Instead, you may wish to publish the form, which places it into a form library. For more information, see Publishing the EnhancedLitCrit Form.