Trip Interface Description 1.3.0 Help

Quantities

A question of type quantities allows the user to input quantities for different items. This could be used to ask the user to input the number of items they received or delivered.

{ "id": 0, "type": "quantities", "key": "quantities", "label": "Aantallen", "description": "Each type has different options", "required": true, "answers": [ { "id": 0, "label": "Blokformaat PP", "nextQuestionId": 1, "options": { "defaultValue": "5.4", "decimals": 0 }, "value": "AANTALBLOKPP" }, { "id": 1, "label": "Euroformaat PP", "nextQuestionId": 1, "options": { "minValue": 3.0 }, "value": "AANTALEUROPP" }, { "id": 2, "label": "Rolcontainers", "nextQuestionId": 1, "options": { "minValue": 0.0, "maxValue": 5.0 }, "value": "AANTALROLCONTAINERS" }, { "id": 3, "label": "Doos", "nextQuestionId": 1, "options": { "hiddenByDefault": true, "decimals": 3 }, "value": "AANTALDOOS" } ] }

Answer Options

This chapter describes the option possibilities for an answer.

Name

Type

Description

Required

Default

decimals

int

The number of decimals allowed for the answer.

false

1

minValue

int

The minimum value.

false

0

maxValue

int

The maximum value.

false

0

maxLength

int

The maximum number of numbers allowed for the answer.

false

4 + decimals

hiddenByDefault

bool

Hidden items can be manually added by the user by clicking the + icon next to Quantity.

false

false

defaultValue

string

Default value to pre-fill the input.

Note: This has to be a string that can be parsed as a number. Such as "0.0" or "1".

false

0.0

Examples

Quantities example

A example image for question quantities
{ "id": 0, "type": "quantities", "key": "quantities", "label": "Aantallen", "description": "Each type has different options", "required": true, "answers": [ { "id": 0, "label": "Blokformaat PP", "nextQuestionId": 1, "options": { "defaultValue": "5.4", "decimals": 0 }, "value": "AANTALBLOKPP" }, { "id": 1, "label": "Euroformaat PP", "nextQuestionId": 1, "options": { "minValue": 3.0 }, "value": "AANTALEUROPP" }, { "id": 2, "label": "Rolcontainers", "nextQuestionId": 1, "options": { "minValue": 0.0, "maxValue": 5.0 }, "value": "AANTALROLCONTAINERS" }, { "id": 3, "label": "Doos", "nextQuestionId": 1, "options": { "hiddenByDefault": true, "decimals": 3 }, "value": "AANTALDOOS" } ] }
Last modified: 04 June 2025