Docs
Core Concepts
Forms

Forms

A form is a collection of form fields classified through pages, sections and questions. Forms are defined following a schema written in JSON. React Form Engine (RFE) forms are leveraging the JSON Schema (opens in a new tab) with a few custom extensions. Below is a snippet of a basic form structure:

{
  "name": "Hello world form",
  "pages": [],
  "uuid": "ff0933fb-20bd-4e44-a3e8-4073e9801ceb",
  "encounterType": "d105cbc3-728d-4d11-9ed3-637bf1a4e8a6",
  "availableIntents": []
}

Form schemas get constructed using the Form builder (opens in a new tab).

Form properties

The schema comprises of the following properties:

ElementTypeDescription
namestringThe name of the form
uuidstringThe unique form identifier
encounterTypestringThe encounter type uuid associated with the form’s encounter
inlineRenderingsingle-line / multi-line / automaticThe inline rendering mode
pagesArray<Section>A collection of pages that makeup the form
availableIntentsArray<Intent>A list of intents supported by this form