Skip to main content

QuestionnaireForm.Content

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.