Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DecisionTreeField

Represents a single question or input field in the decision tree.

Hierarchy

  • DecisionTreeField

Index

Properties

choiceSetOptions?: { title: string; value: string }[]
choices?: { title: string; value: string }[]
dataType: string
description?: string

Optional description shown as an info-icon tooltip next to the field label.

errorMessage?: string

Optional custom error message to display when validation fails.

fieldId?: string

Unique identifier for the field within the decision tree.

isRequired?: boolean

Whether the field is required (real API key: 'isRequired').

label?: string

Legacy label field retained for backward compatibility with mock configs.

mandatory?: boolean

Legacy mandatory field retained for backward compatibility with mock configs.

multiChoiceSetOptions?: { title: string; value: string }[]
name?: string

Short display name for the field as configured in the admin UI (real API key: 'name').

options?: string[]
placeholderText?: string

Optional placeholder text shown inside the input when empty.

preCondition?: SectionPreCondition

Pre-condition controlling field-level visibility.

questionId?: string

Runtime identifier used by the API. Typically matches CapturedQuestion.questionId from backend responses.

questionText?: string

Full question text for this field (real API key: 'questionText'). Matches the WS capturedResponses.questionText used in Interview Mode. Preferred label source; falls back to name, then label.

Generated using TypeDoc