Configure Business Rules for Document Records
You can create these validations in the Document Records landing page:
- For Passport document type, Issued Date should be after or equal to From Date.
- For Drivers License document type, warn users if To Date is null.
Examples
Validate that Issued On date should be greater than or equal to From Date for Passport document type
Advanced Expression
{
if (($objectContext.DocumentType.includes('GLB_PASSPORT')) && $fields.documentRecords.IssuedDate.$value() <= $fields.documentRecords.DateFrom.$value()) {
return true;
}
return false;
}
Validation to warn users if To Date is null for Drivers License document type
Advanced Expression
{
if (($objectContext.DocumentType.includes('GLB_DRIVERS_LICENSE')) && $fields.documentRecords.DateTo.$value() == null) {
return true;
}
return false;
}