To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Validates that a lead field's value is a string within an optional minimum and maximum length. Written into a task outcome's validations list as a string-validation element, and checked when that outcome is selected on task completion.
Group: Journeys
Extends: TaskOutcomeFieldValidation
Properties
| Property | Returns | Description |
|---|---|---|
| maxLength | Integer | The maximum allowed length of the field's string value. |
| minLength | Integer | The minimum allowed length of the field's string value. |
Inherited from TaskOutcomeFieldValidation
Properties
| Property | Returns | Description |
|---|---|---|
| fieldName | String | The name of the lead field this rule validates. |
| required | Boolean | Whether the field must have a value for this rule to pass. |
Methods
getFieldName()
Returns: String
The name of the lead field this rule validates.
getRequired()
Returns: Boolean
Whether the field must have a value for this rule to pass.
Methods
getMaxLength()
Returns: Integer
The maximum allowed length of the field's string value.
getMinLength()
Returns: Integer
The minimum allowed length of the field's string value.