To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Base class for a validation rule checked against one of a lead's fields when a TaskOutcome is selected on task completion. Concrete subclasses (StringTaskOutcomeFieldValidation, NumericTaskOutcomeFieldValidation) implement checkValid to test the field's current value and return a validation failure message, or null if the value is valid.
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.