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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.