Static properties and methods related to the form status.

Constructors

Methods

  • Checks if the form is valid.

    Returns void

  • List all invalid fields of the form

    Parameters

    • Optionalfilter: { onlyFullfilled?: boolean }

      set filter to onlyFullfilled to get only fullfilled fields

    Returns string[]

    • an array of field ids
  • List all required fields of the form

    Parameters

    • Optionalfilter: { onlyFilled?: boolean; onlyFullfilled?: boolean; onlyUnfilled?: boolean }

      set filter to onlyFullfilled to get only fullfilled fields, set filter to onlyUnfilled to get only unfilled fields, set filter to onlyFilled to get only filled fields

    Returns string[]

    • an array of field ids
  • Processes all conditions and sets the status of the form

    Returns void

  • Stops (or enables) processing conditions and setting the status of the form. Use with caution and always set back with suspendStatus(false) or enableProcessing();

    Parameters

    • suspend: boolean

      boolean, default = true, suspending (true) or enabling processing of conditions and status of the form

    Returns void

  • Validate the current form

    Parameters

    • staticValidation: boolean = true

      set to false to validate the form with form validation

    • suppressLogs: boolean = false

      set to true to suppress log messages

    Returns FormValidationResult

    • form validation result