Rules-Based Validation

InfoPath 2003 allows the form developer to define rules relating to allowed values for form controls. Many of the rules that the InfoPath user interface allows the form designer to create could be created in scripting code, but it is often much easier to create them using the InfoPath user interface.

Let's create a simplified form template, RulesExample.xsn, which can be used for collecting some human resources data. Figure 10.11 shows the form template in design mode. A custom layout table is used to lay out the form controls and their labels.

Figure 10.11. The RulesExample.xsn form template in design mode.

Giving Fields ...

Get Microsoft® Office InfoPath™ 2003 Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.