Form rules
Form rules can perform a wide range of edit checks on items entered or updated on a form. For example:
- You can check for conformity with a specified range of values.
- You can make sure that two items are in an appropriate relationship with each other; for example, that the date of the second visit is between ten days and two weeks later than the date of the first visit.
- You can ensure that all parts of a multiple-part control are filled in; for example, you make sure that users select a unit value on an item where units are specified, or that all parts of a required date and time control are specified.
- You can pass a message to an execution plan that logs an event in the Microsoft Windows event log or sends email.
Form rules run when both of the following are true:
- All items that the rule needs for processing have data values.
- The value of at least one of the items on which the rule depends is entered or updated.
Each form rule is associated with an event. Depending on the result to which the rule evaluates and on the definition of the event, the following can occur:
- The event can generate a query or clear an open query.
- The event can run one or more execution plans that:
- Send e-mail
- Send an entry to the Windows log file
For information on events, see Defining Events and Execution Plans.