Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The FlexDeploy 4.0.3 - Patch Release 05-22-2017 introduces a "Visible" attribute for FlexFields.  This is helpful to Invisible Flexfields help perform validations of the build/deploy request before the form is submitted.  This is achieved by creating an invisible FlexField   Invisible FlexFields can be created for either the Deploy Request or Build Request (so that field does not appear on the screen) and using the Validation Script to perform such logic.

...

Here are some samples of Validation script:

...

languagegroovy
themeMidnight
titleRequire Package Name on Partial Deploy Build Request for EBS
linenumberstrue

...


Code Block
languagegroovy
themeMidnight
titleRequire Start Time on Partial Deploy Deploy Request for EBS
linenumberstrue
if (PartialDeploymentsFlag && ProjectType!=null && ProjectType.equals("EBS"))
{
    if(StartTime == null && "PROD".equals(EnvironmentCode))
    {
      ValidationMessage="Please enter Start Time for deployment.";
      return false;
    }
}
return true;

...