Form Version Section
The form version sections contains information about a section in a form version.
The form version section model
Properties
- Name
id
- Type
- string
- Description
Unique identifier for the form version section.
- Name
object
- Type
- string
- Description
Always 'form_version_section'.
- Name
name
- Type
- string
- Description
Name of the form version section.
- Name
questions
- Type
- string
- Description
List of questions is this form version section.
- Name
logic
- Type
- 2D array of objects
- Description
- Set of criteria that have to be met for this form version section to be visible. If no conditions are passed, this form version section will always be visible. The inner array is a set of conditions that are ANDed together whereas the outer array is a set of conditions that are ORed together. For example, if you want this form version section to be visible if the patient selects either option 1 or option 2, you would pass:
[ [ { "field": "opt_1", "condition": "equal_to", "value": true } ], [ { "field": "opt_2", "condition": "equal_to", "value": true } ] ]
If you want this form version section to be visible if the patient selects option 1 and option 2, you would pass:[ [ { "field": "opt_1", "condition": "equal_to", "value": true }, { "field": "opt_2", "condition": "equal_to", "value": true } ] ]
Response
{
"id": "fsec_U8xtAULYUrX7GVsTKePy",
"object": "form_version_section",
"name": "Section 1",
"questions": ["fqst_1JtjV1QEY84Fv395Hl7h"],
"logic": [
[
{
"field": "fqst_3951JtjV1QEY84FvHl7h",
"condition": "equalTo",
"value": "Yes"
}
]
]
}