Trip Interface Description 1.2.2 Help

Scan

A question of type scan allows the user to scan or manually enter a bar or QR code.

{ "isEnabled": true, "id": 0, "required": true, "type": "scan", "key": "scan_camera_multiple", "label": "Scan (multiple)", "description": "At most 5 numerical barcodes with a min length of 10", "answers": [ { "id": 0, "nextQuestionId": 1, "options": { "allowCamera": true, "allowManualInput": false, "maxBarcodes": 5, "minLength": 10 } } ] }

Answer Options

This chapter describes the option possibilities for an answer.

Name

Type

Description

Required

Default

minLength

bool

The minimum amount of characters that the barcode has to be.

Note: Leave this empty or set to 0 to disable this option.

false

0

maxLength

bool

The maximum number that the barcode can be.

Note: Leave this empty or set to 0 to disable this option.

false

0

alphanumerical

bool

Allow alphanumerical characters.

false

true

maxBarcodes

int

The maximum number of allowed barcodes.

Note: Leave this empty to only allow one barcode.

false

0

allowCamera

bool

If this is false, the camera icon will disappear in the UI.

false

true

allowManualInput

bool

If this is true, the user can type in the numbers/letters manually instead of scanning them.

false

true

isQRCode

bool

Is the answer a QR code?

false

false

Examples

Scan at most 5 numerical barcodes with a min length of 10

A example image for question_scan multiple
{ "isEnabled": true, "id": 0, "required": true, "type": "scan", "key": "scan_camera_multiple", "label": "Scan (multiple)", "description": "At most 5 numerical barcodes with a min length of 10", "answers": [ { "id": 0, "nextQuestionId": 1, "options": { "allowCamera": true, "allowManualInput": false, "maxBarcodes": 5, "minLength": 10 } } ] }

A single alphanumerical barcode

A example image for question_scan multiple
{ "id": 0, "required": true, "type": "scan", "key": "scan_manual_one", "label": "Scan (single)", "description": "A single alphanumerical barcode", "answers": [ { "id": 0, "label": null, "nextQuestionId": 1, "options": { "allowCamera": false, "allowManualInput": true, "alphanumerical": true, "isQRCode": true }, "value": null } ] }
Last modified: 04 June 2025