Edit a Validation Rule

There are three steps to building a validation rule:

  1. Define the list of attributes the rule will apply to, for instance: Brand and Product Name. (See Validation Rule Attributes.)
  2. Define the rule, for instance: the attributes to which the rule applies must not be null. (See Validation Rule Details.)
  3. Define the list of conditions that when some or all of them are met, the rule will be applied, for instance: apply the rule if Product ID is not null. (See Validation Rule Conditions.)

Note: The order of the sub-pages on the Manage Rule page is not the same as the order of the steps listed above. Once a new rule is named, the rule’s configuration options can be edited in any order.

As an example, simple validation rules are in the form:

<assigned attribute> must <operator>(<assigned value>) (if <condition attribute> <condition operator> (<condition value>) is true)

where parenthesis indicate that portion of the rule is optional.

Examples of simple validation rules are:

Country Code must Equal EN if Product ID > 100

Product ID must be Greater Than 100 if Country Code Equals EN

Product ID must be Not Empty