Parameter constraints

Certain parameter types support configuring additional constraints that restrict what a user is allowed to enter.

Select options

Supported types: short text, long text, sql, integer, number, date, date & time, config variable.
Select options (aka "dropdowns" or "enums") allow you to specify exactly which values are allowed for a given parameter.
For example, you can specify a short text "Environment" parameter with production or development as two options.
You can optionally add a label to each option. Labels are shown to the user instead of the value. This is helpful if you want to show the user one thing (e.g. a customer name) but pass a different value to your task (e.g. a customer ID).

Templated options

If you are creating parameters for a form block, you can also dynamically generate a list of options from a previous block's output by using a Javascript template. For more information, refer to the form blocks page.

Regular expressions

Supported types: short text, long text, sql, config variable.
Regular expressions allow you to more dynamically control what values are permitted. For most string values, regular expressions will match against the value itself. For config variables, regular expressions will match against the name of the config variable (not the value).
Expressions must match the entire value. For example, an expression of plan.* will match plane but not airplane.
Example constraint settings for a parameter.
Example constraint settings for a parameter.