Skip to content

3.3.5. Validator

Ettiene Mare edited this page Mar 8, 2020 · 4 revisions

The Validator Service performs validation on the controls on the page.
The validation will occur on navigation and on controls, on change, after the validation failed.
The Validator Service will be accessible through the Context object.

Specification

The Validator Service is accessible through the Context object.

validateForm(): string {
    return this.ctx.validator.validate(this.ctx);
}

The validators should be registered in the validator service.

export class ValidatorService {
    private validators: Array<Validator> = [
        new RequiredValidator("required")
    ];
}

Methods

validate(ctx: Context): boolean

Performs validation on the controls on the page.

Parameter Description Default Value Required
ctx The current context to get access to all the controls on the page. undefined true

Home

  1. Setup

  2. Configure

  3. Design

    3.1.Introduction

    3.2. Core

    3.2.1. Workflow
    3.2.2. Analytics
    3.2.3. Messages

    3.3. Services

    3.3.1. Workflow
    3.3.2. Analytics
    3.3.3. Config
    3.3.4. Model
    3.3.5. Validator
    3.3.6. Http

    3.4. Validators

    3.4.1. Required
    3.4.2. Regex
    3.4.3. Range
    3.4.4. Custom

    3.5. Pipes

    3.5.1. Currency

    3.6. Activities

    3.6.1. Page
    3.6.2. Api
    3.6.3. Assign
    3.6.4. Decision
    3.6.5. Code
    3.6.6. IPC
    3.6.7. Finish
    3.6.8. Redirect
    3.6.9. Switch
    3.6.10. Custom

    3.7. Web Components

    3.7.1. React

Clone this wiki locally