Administer > Application Setup > Process Designer > Adding a rule > Add a Validate Text/Number rule

Add a Validate Text/Number rule

Applies to User Roles:

System Administrator

Implementer

This rule enables you to validate a field against a range of text or a number in another field of same table. You can define fixed values or select a field from the current table to validate against a field. For example, the field to validate is Demo Number, field to validate against is Demo String 1, and the comparison operator is Is greater than or equal to.

Note If the field to validate against is blank, the rule is ignored. If you need to enforce the rule, then use a Set Mandatory Fields rule on the filed you need to validate against.

To add a Validate Text/Number rule, follow these steps:

  1. In the System Navigator, click Tailoring > Process Designer > Rule Sets.
  2. Click Search to open the Rule Set form, and then select the rule set to which you want to add the rule.

    Note You can edit user-defined rule sets only. Out-of-box rule sets are labeled as HPE Proprietary and cannot be modified.

  3. Click Add Rule to open the Select Rule Type page, and then click Validate Text/Number.
  4. In the Rule Description field, type a description of your new rule.
  5. Click Edit to add conditions to the rule.

    Note If you do not specify a condition, the value defaults to Always.

  6. Select Pop-up or Screen to set the type of error message that is displayed during validation.

  7. Select the field to validate from the drop-down list.
  8. Select the comparison operator from the drop-down list.
  9. Select the Not check box if you want to negate the comparison.
  10. To validate against a field or manually defined value, follow the appropriate steps:

    • To validate against a field, select Field under Values, and then select the field you want to validate against from the drop-down list.
    • To validate against a manually defined value, select Custom under Values, and then type the value to validate against the selected field. For example, to validate whether the “Risk Assessment” value is between 1 and 5, select the Is between comparison operator, and then type 1 and 5 in the Custom text box.
  11. Click OK to add the new rule to the rule set.