QuestionnaireForm.Content

Content primitives for current or all enabled questionnaire items

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

QuestionnaireForm.Content is a themed View that renders its children only when the current form state has content to show. It accepts ViewProps and adds a themed vertical gap.

Children

  • QuestionnaireForm.Content.Item renders the current enabled item in paged mode.
  • QuestionnaireForm.Content.AllItems renders all enabled items as a flat list and is intended for paged={false} layouts.
  • QuestionnaireForm.Content.Error renders the current validation or submission message.

The content components must be descendants of QuestionnaireForm; otherwise their hooks throw because the form context is missing. The SDK owns the item renderer and field value updates, while the app owns surrounding layout and submission policy.

Last updated on

On this page