Flow Field Validation
When creating a Flow field, you can add validation to values that are stored. The validation you can use depends on the field_type
and each one is expressed as a validation rule object:
string
/ enum
string
/ enum
Must be one of a predefined collection of strings.
Attribute | Type | Description |
|
|
|
|
| An array of valid string values. |
string
/ email
string
/ email
Must be a valid email address.
Attribute | Type | Description |
|
|
|
string
/ slug
string
/ slug
Can contain only letters, numbers, hyphens and underscores.
Attribute | Type | Description |
|
|
|
integer
/ between
integer
/ between
Must be between the two provided values.
Attribute | Type | Description |
|
|
|
|
| an object containing |
integer
/ enum
integer
/ enum
Must be one of a predefined collection of integers.
Attribute | Type | Description |
|
|
|
|
| An array of valid integer values. |
float
/ between
float
/ between
Must be between the two provided values.
Attribute | Type | Description |
|
|
|
|
| An object containing |
float
/ enum
float
/ enum
Must be one of a predefined collection of floats.
Attribute | Type | Description |
|
|
|
|
| An array of valid float values. |
date
/ enum
date
/ enum
Must be one of a predefined collection of dates.
Attribute | Type | Description |
|
|
|
|
| An array of valid date values as strings ( |
relationship
/ one-to-many
relationship
/ one-to-many
Allows multiple relationships to be created.
Attribute | Type | Description |
|
|
|
|
| The entity type you are making relationships with in singular form (e.g. |
relationship
/ one-to-one
relationship
/ one-to-one
Allows only a single relationships to be created on an entry.
Attribute | Type | Description |
|
|
|
|
| The entity type you are making relationships with in singular form (e.g. |
Last updated