Trip Interface Description 1.2.2 Help

Checkbox

A question of type checkbox allows the user to select one or more options from a list of options.

{ "id": 0, "key": "checkbox_at_least_2", "label": "At least 2", "description": "At least 2 options should be checked", "required": true, "type": "checkbox", "answers": [ { "id": 0, "label": "Geen", "nextQuestionId": 1, "value": "geen", "options": { "minCheckCount": 2 } }, { "id": 1, "label": "Glaszuiger", "nextQuestionId": 1, "value": "glaszuiger" }, { "id": 2, "label": "Materiaalcontainer", "nextQuestionId": 1, "value": "materiaalcontainer" }, { "id": 3, "label": "Pallethaak", "nextQuestionId": 1, "value": "pallethaak" } ] }

Answer Options

This chapter describes the option possibilities for an answer.

Name

Type

Description

Required

Default

requireAll

bool

If true, the user first has to check all boxes before he can continue.

false

false

minCheckCount

int

The minimal amount of checkboxes that are required to be checked.

false

0

Examples

Optional

Checkbox optional
{ "id": 0, "key": "checkbox_optional", "label": "Optional", "description": "None of the values is required", "type": "checkbox", "answers": [ { "id": 0, "label": "Geen", "nextQuestionId": 1, "value": "geen" }, { "id": 1, "label": "Glaszuiger", "nextQuestionId": 1, "value": "glaszuiger" }, { "id": 2, "label": "Materiaalcontainer", "nextQuestionId": 1, "value": "materiaalcontainer" }, { "id": 3, "label": "Pallethaak", "nextQuestionId": 2, "value": "pallethaak" } ] }

Require at least two

Checkbox at least 2
{ "id": 0, "key": "checkbox_optional", "label": "Optional", "description": "None of the values is required", "type": "checkbox", "answers": [ { "id": 0, "label": "Geen", "nextQuestionId": 1, "value": "geen" }, { "id": 1, "label": "Glaszuiger", "nextQuestionId": 1, "value": "glaszuiger" }, { "id": 2, "label": "Materiaalcontainer", "nextQuestionId": 1, "value": "materiaalcontainer" }, { "id": 3, "label": "Pallethaak", "nextQuestionId": 2, "value": "pallethaak" } ] }

Require all

Checkbox require all
{ "id": 0, "key": "checkbox_require_all", "label": "Require all", "description": "All options should be checked", "required": true, "type": "checkbox", "answers": [ { "id": 0, "label": "Geen", "nextQuestionId": 1, "options": { "requireAll": true }, "value": "geen" }, { "id": 1, "label": "Glaszuiger", "nextQuestionId": 1, "value": "glaszuiger" }, { "id": 2, "label": "Materiaalcontainer", "nextQuestionId": 1, "value": "materiaalcontainer" }, { "id": 3, "label": "Pallethaak", "nextQuestionId": 1, "value": "pallethaak" } ] }
Last modified: 04 June 2025