/
Use validators based on date range
Use validators based on date range
Use the following script as a workflow transition validator. It allows a transition only if the date field value is within 180 days from today.
interval range = "180d";
date maxDate = currentDate() + range;
string errorMsg = "Due date must be within 180 days of today";
if(isNull(due) || due > maxDate) {
return false, "error", errorMsg;
}
, multiple selections available,
Related content
Date Expression Compare validator
Date Expression Compare validator
More like this
Date Window validator
Date Window validator
More like this
Workflow validators
Workflow validators
More like this
Use a workflow validator based on logged hours
Use a workflow validator based on logged hours
More like this
Calculate the due date based on custom field values
Calculate the due date based on custom field values
More like this
Calculate the due date based on custom field values
Calculate the due date based on custom field values
Read with this