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.