Previous Topic: Types of Validation RulesNext Topic: Validation Rule Sets


Example: Comparing Directory-Level Validation and Task-Level Validation

In this example, a telephone attribute is mapped in directory.xml to a directory-level validation rule requiring telephone numbers to be formatted as nnn-nnn-nnnn. All fields configured with the telephone attribute are validated against the nnn-nnn-nnnn format whether the field appears in a Create User task screen, a Create Supplier task screen, or any other task screen.

If a Telephone Number field appears on a Create Customer task screen, like telephone number fields in other task screens, this field is configured with the telephone attribute that requires the nnn-nnn-nnnn telephone number format. However, because some of the company’s customers are located in other states, the Telephone Number field on the Create Customer task screen is also associated with the following task-level validation logic: