HierarchicalQuestionInput
Input Object
Input for hierarchical question.
Fields
id ID! Required
Unique question ID.
question String! Required
Displayed question text.
options [SelectOptionInput!]! Required
Options.
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.
id ID! Required
Question ID used in the condition.
values [String!]! Required
Values that satisfy the condition when that question matches.
required Boolean! default:false
If true, the question is required. Unanswered optional questions return "". Default: false.
hierarchicalOptions [HierarchicalOptionInput!]! Required
Follow-up questions based on a previous answer.
Example: Select a state, then show cities in that state.
Limited to 3 levels.
id ID! Required
Unique question ID.
options [SelectOptionInput!]! Required
Options.
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.
id ID! Required
Question ID used in the condition.
values [String!]! Required
Values that satisfy the condition when that question matches.
Example
{ "id": "opaqueId", "question": "xyz789", "options": [SelectOptionInput], "condition": ConditionConstraintInput, "required": false, "hierarchicalOptions": [HierarchicalOptionInput]}