Skip to end of banner
Go to start of banner

Date field must be within range

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Use this script as a workflow transition validator to allow transition only if a date field 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;
}
  • No labels