About the Events developer sample form

Microsoft Office InfoPath

Show All Show All

About the Events developer sample form

The Events developer sample form demonstrates some of the events that may be used in a Microsoft Office InfoPath 2003 form. In InfoPath, events are used to implement client-side business logic, which may include data validation, controlling the behavior of a form, responding to the actions of controls on a form, or submitting a form.

The Events developer sample form is based on the scenario of a customer contact system. It contains three views that are used to manage customer information:

  • New Customer View   Used to enter new customer information. Customer information must be entered in this view before the other views can be used.
  • Contact Customer View   Used to set the dates on which the customer should be contacted and to record that the customer has been contacted.
  • Archive Customer View   Used to show customer information, record notes about the customer, and record that the customer record has been archived.

To test the features of the sample form, enter customer information in New Customer view, and then click Switch To Contact Customer View to switch views. After entering customer contact information in Contact Customer view, you can click Switch To Archive Customer View to switch to the list of archived customer contact information.

Note  To see all of the files that make up the Events developer sample form, open the form and click Extract Form Files on the File menu while in design mode. This extracts all of the form files from the form template file and saves them to a specified folder on your hard disk.

To learn how each event is implemented in the Events developer sample form, see the following topics:

Form events in the Events developer sample form

Data validation events in the Events developer sample form

Control events in the Events developer sample form