Description

Represents a form.

Hierarchy

  • Form

Properties

answers?: FormAnswers

The submitted answer to this form field. null if it is not submitted yet.

fields: FormField[]

A set of fields representing a single question and its corresponding response.

formKey: string

Deprecated

The key of the form. Use key instead.

key: string

The key of the form.

messageId: number

The ID of the message to which the corresponding form belongs.

Accessors

  • get isSubmittable(): boolean
  • Whether this form is submittable or not.

    Returns boolean

  • get isSubmitted(): boolean
  • Whether this form is submitted or not.

    Returns boolean

Methods

  • Parameters

    • key: string

    Returns undefined | string

    Description

    Gets a field answer for the key.

Generated using TypeDoc