Validating Text Box Patterns

InfoPath’s pattern-matching feature lets you validate or conditionally format special text formatting. The Data Entry Pattern dialog box offers prebuilt regular expressions for U.S. and Canadian telephone numbers, social security numbers, 5-digit ZIP Codes, and ZIP+4 Codes, as shown on the left in Figure 8-4. You can also create your own regular expression by selecting a custom pattern and adding special characters from an Insert Special Character drop-down list. The dialog box on the right in Figure 8-4 shows a pattern for matching the five-letter CustomerID field.

Figure 8-4. The Data Entry Pattern dialog box provides ...

Get Introducing Microsoft® Office InfoPath™ 2003 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.