Run script when a user saves a form

Microsoft Office InfoPath 2003

Run script when a user saves a form

  1. On the Tools menu, click Form Options, and then click the Open and Save tab.
  2. Under Save behavior, select the Save using custom code check box, and then click Edit.
  3. In the Microsoft Script Editor (MSE), locate the following comments in the code, and replace them with the code you want to run before and after the user saves the form:

    // Write the code to be run before saving here.

    // Write the code to be run after saving here.