Validate that Date of Death isn't a Future Date
You must add new field validations section.
Following are the steps:
-
Sign in to Oracle CX Sales using administrator role.
-
Navigate to Application Composer.
-
Go to Service Request > Server Scripts.
-
On Validation Rules page, in Field Rules section, click New icon.
-
For field name, select Date of Death.
-
Provide a rule name such as ValidateDoD.
-
Provide the Date of Death cannot be set to a future date error message.
-
Add the following rule for validations groovy code:
return (newValue < today())