Invisible Flexfields help perform validations of the build/deploy request before the form is submitted.  Invisible FlexFields can be created for either the Deploy Request or Build Request and using the Validation Script to perform such logic.

We recommend using FLEX_FIELD_10 for performing Build or Deploy request related custom validations. You can do this for Build Request or Deploy Request or both. 

  

Here are some samples of Validation script:

if (PartialDeploymentsFlag && ProjectType!=null && ProjectType.equals("EBS") 
    && (PackageName==null || PackageName.equals("")))
{
  ValidationMessage="Package Name is required";
  return false;
}
return true;


if (PartialDeploymentsFlag && ProjectType!=null && ProjectType.equals("EBS"))
{
    if(StartTime == null && "PROD".equals(EnvironmentCode))
    {
      ValidationMessage="Please enter Start Time for deployment.";
      return false;
    }
}
return true;


if (MainStream)
{
   ValidationMessage="Deployment not allowed from Main Stream.";
   return false;
}
return true;