| Name | Type | Description |
|---|---|---|
| record | sys.data.Record | This is the record associated to the operation. If field is inside an entity field, this will be the record that contains the field. If the field is an action parameter, this will be the record where the action is being executed. |
| parentField | sys.data.Record | This variable is only available when this is a field inside a nested field and it is based on the
variable It is a |
| action | sys.data.Action | This variable will be available only if the field is an action parameter. It will provide access to other parameters. |
boolean - You should return true if the field must be required, false otherwise. //if 'numberOfExmployees' is bigger than 10, then this field is required
return record.field('numberOfEmployees').val() > 10;