Trip Interface Description 1.2.2 Help

Entity Quantities

A question of type entity_quantities allows the user to input quantities for different items from a stop or trip.

See the Trip messages page to find out more about the entities concept. This for example includes trips, stops and/or goodLines.

{ "id": 0, "type": "entity_quantities", "key": "entity_quantities", "label": "Aantallen", "description": "Een aantallen vraag o.b.v. de onderliggende entities", "answers": [ { "id": 0, "label": null, "nextQuestionId": 1, "options": { "title": "Goederen", "amountLabel": "Schade", "flag": "goods_line", "descField": "description", "quantityField": "quantity", "decimals": 2, "minValue": 0.0, "maxValue": 100.0 }, "value": null } ] }

Answer Options

This chapter describes the option possibilities for an answer.

Name

Type

Description

Required

Default

flag

string

The name of the flag that is used for entities in the trip's meta.

true

title

string

The title of the first column.

false

amountLabel

string

The title of the amount's column.

false

quantityField

string

The name of the quantity field in the entity meta.

false

descField

string

The name of the description field in the entity meta.

false

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.

false

"0.0"

Examples

Entities quantities example

An example image for question entities-quantities
{ "id": 0, "type": "entity_quantities", "key": "entity_quantities", "label": "Aantallen", "description": "Een aantallen vraag o.b.v. de onderliggende entities", "answers": [ { "id": 0, "label": null, "nextQuestionId": 1, "options": { "title": "Goederen", "amountLabel": "Schade", "flag": "goods_line", "descField": "description", "quantityField": "quantity", "decimals": 2, "minValue": 0.0, "maxValue": 100.0 }, "value": null } ] }
Last modified: 04 June 2025