Trip Interface Description 1.2.2 Help

Container Number

A question of type container_number allows the user to enter a container number. The app will validate if it is a valid container number.

{ "id": 0, "type": "container_number", "required": true, "key": "container_number", "label": "Container number", "answers": [ { "id": 0, "nextQuestionId": 1, "options": { "format": 0 } } ] }

Answer Options

This chapter describes the option possibilities for an answer.

Name

Type

Description

Required

Default

defaultValue

string

A default value for the answer

false

maxLength

int

The max length of the answer

false

13

format

int

The index of the format used to format the answer.


Index

Name

Format

0

WITH_SPACES

%s %s %s

1

WITHOUT_SPACES

%s%s%s

false

0

Examples

Container question

Container question with format option 1
{ "id": 0, "type": "container_number", "required": true, "key": "container_number", "label": "Container number", "answers": [ { "id": 0, "nextQuestionId": 1, "options": { "format": 0 } } ] }
Last modified: 04 June 2025