Skip to content

AdditionalField model

AdditionalField is a model of additional custom fields in a given context object and consists of the following fields:

  • id: number
  • isRequired: boolean
  • type: TAdditionalFieldType | null
  • label: string
  • description: string
  • options: { id: number; value: string; }[]
  • isChecked: boolean | undefined

TAdditionalFieldType type

TAdditionalFieldType is a type that represents one of the following field types:

  • 1: text
  • 2: checkbox
  • 3: select
  • 4: file
  • 5: hidden
  • 6: description