Skip to main content

QuestionnaireForm.Content.AllItems

Content.AllItems reads the form's allItems state and renders each enabled item in a flat View. It is useful with QuestionnaireForm paged={false}.

<QuestionnaireForm questionnaire={questionnaire} paged={false} onSubmit={save}>
<QuestionnaireForm.Content>
<QuestionnaireForm.Content.AllItems testID="all-items" />
<QuestionnaireForm.Content.Error />
</QuestionnaireForm.Content>
</QuestionnaireForm>;

It accepts ViewProps and adds a themed gap. Each item receives a generated test ID of all-items-<linkId> and updates the form through the normal questionnaire field renderer. The list is flat; nested FHIR item hierarchy is not recreated by this component. It returns null when no enabled items exist.