form-definition-v2-schema-properties-conditions-conditions-item-properties-items-items-item-oneof-generic-list-items
Condition Item Type
object (Generic List Items)
Condition Item Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| id | string | Optional | cannot be null | Form Definition V2 Schema |
| componentId | string | Required | cannot be null | Form Definition V2 Schema |
| operator | string | Required | cannot be null | Form Definition V2 Schema |
| type | string | Required | cannot be null | Form Definition V2 Schema |
| value | Multiple | Required | can be null | Form Definition V2 Schema |
id
Unique identifier used to reference this condition
id
-
is optional
-
Type:
string(Id) -
cannot be null
-
defined in: Form Definition V2 Schema
Id Type
string (Id)
id Constraints
UUID: the string must be a UUID, according to RFC 4122
componentId
Reference to the component id being evaluated in this condition
componentId
-
is required
-
Type:
string(Component Id) -
cannot be null
-
defined in: Form Definition V2 Schema
Component Id Type
string (Component Id)
componentId Constraints
constant: the value of this property must be equal to:
{ "ref": { "path": [ "pages" ], "ancestor": "root", "in": true }}operator
Comparison operator: equals, notEquals, contains, notContains, greaterThan, lessThan, isEmpty, isNotEmpty
operator
-
is required
-
Type:
string(Operator) -
cannot be null
-
defined in: Form Definition V2 Schema
Operator Type
string (Operator)
operator Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"is" | |
"is not" | |
"is longer than" | |
"is shorter than" | |
"has length" | |
"contains" | |
"does not contain" | |
"is at least" | |
"is at most" | |
"is less than" | |
"is more than" | |
"is before" | |
"is after" |
type
Type of the condition value
type
-
is required
-
Type:
string(Type) -
cannot be null
-
defined in: Form Definition V2 Schema
Type
string (Type)
type Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"Value" | |
"RelativeDate" | |
"StringValue" | |
"BooleanValue" | |
"NumberValue" | |
"DateValue" | |
"ListItemRef" |
value
Value to compare the field against, either fixed or relative date
Value can be of various types (boolean, string, number, integer, object, object).
value
-
is required
-
Type: any of the following:
arrayorbooleanornumberorobjectorstring(Value) -
can be null
-
defined in: Form Definition V2 Schema
Value Type
any of the following: array or boolean or number or object or string (Value)