Validate Field Values
You can author validation rules (warning and error) only in HCM Redwood pages for a defined list of pages, regions, and fields:
- Global Human Resources
- Additional Person Info
- Departments
- Change Assignment for the following regions only:
- When and Why
- Assignment
- Additional Assignment Info
- Salary
- Correct Employment Details accessible from Employment Info supporting the same capabilities and regions as Change Assignment
You can typically use field value validation in these cases:
- Additional Person Info (EFFs)
- Validate the format of a segment to be alphanumeric and exactly composed of 11 characters.
- Change Assignment and Correct Employment Details
- Additional Assignment Info
- Validate Additional Assignment Info data against existing data in the same single row EFF context.
- Salary
- Validate proposed salary basis based on Full Time or Part Time status or Salaried or Hourly value or other assignment attributes.
- Additional Assignment Info
- Departments
- Validate that Department Set and Location should match.
- Enforce valid combinations of Department Name and department descriptive flexfield segments.
Important: Though this feature is visible for all HCM and SCM Redwood pages yet only the 4 HCM
pages listed above are supported.
Using Fields to Author Your Conditions or Rule Logic, or Both
Fields, including initial field values when they have been enabled for the region, are available at different places in Business Rules:
- Conditions.
- Simple or advanced expressions to write the rule logic, or default a field value, or both.
Note: Fields that can be used in the conditions, simple and advanced expressions are
limited to the fields and direct attributes available in the page and that are
listed in the Regions and Fields section.
Using Conditions, Simple Expression, Advanced Expression and JavaScript (JS)
You can build simple rules using the condition builder to define when to trigger the defaulting or validation rules.
Use simple expressions to default a value with another field value, or to transform data before assigning the value to a field.
Use advanced expressions in conditions, if:
- The operators available in the conditions aren't sufficient to write the rule logic.
- You need to transform data. Note that the use of JS in advanced expression is strictly limited to data transformation like substring, day of, and so on.