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

PropertyReturnsDescription
maxLengthIntegerThe maximum allowed length of the field's string value.
minLengthIntegerThe minimum allowed length of the field's string value.

Inherited from TaskOutcomeFieldValidation

Properties

PropertyReturnsDescription
fieldNameStringThe name of the lead field this rule validates.
requiredBooleanWhether 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.