HierarchicalQuestionInput
Input Object
Input for hierarchical question.
Fields
#id ID! Required
Unique question ID.
question String! Required
Displayed question text.
condition ConditionConstraintInput
Show this question only when a previous answer matches. Set the previous question ID and the value that activates this question.
Example: If the applicant answers yes to military service, show a follow-up about branch of service.
required Boolean! default:false
If true, the question is required. Unanswered optional questions return "". Default: false.
hierarchicalOptions [HierarchicalOptionInput!]! Required
Follow-up questions that depend on the previous answer, up to 3 levels deep (for example, state → city → county).
Works like conditional questions, but use it when the first answer determines the next options.
This reduces the number of questions.
Example
#{ "id": "opaqueId", "question": "xyz789", "options": [SelectOptionInput], "condition": ConditionConstraintInput, "required": false, "hierarchicalOptions": [HierarchicalOptionInput]}