Inherited validation rules

Like locators and fields, validation rules are inherited from parent and child classes. An inherited validation rule is read-only. The rule name appears in italic text and the rule icon is greyed out. You cannot edit the properties of an inherited single or multi-field validation rule. In most cases, inherited classes should behave the same way as the parent class.

Occasionally, you might need to modify a child to behave differently than the parent. To do so, select the "Activate validation rule" option for the single field or multi-field validation rule properties. This enables you change an inherited validation rule without affecting the parent or siblings that might have also use that rule.

Important Modifying an inherited validation rule is usually needed only when the associated field and locator is also overwritten. Changing the validation rule for a child independently of the parent can cause unexpected validation errors.