Trip Interface Description 1.2.2 Help

Grid

A question of type grid allows the user to select an answer from a grid. The tiles in the grid can be configured in the answers field.

{ "id": 1, "key": "customer_satisfaction", "label": "Are you happy with the provided service?", "description": null, "required": true, "type": "grid", "answers": [ { "id": 0, "value": "satisfied", "label": "Satifsfied", "nextQuestionId": 2, "options": { "icon": "faw-laugh", "color": "green" } }, { "id": 1, "value": "neutral", "label": "Neutral", "options": { "icon": "faw-meh", "color": "yellow" } }, { "id": 2, "value": "unsatisfied", "label": "Unsatisfied", "options": { "icon": "faw-angry", "color": "red" } } ] }

Answer Options

This chapter describes the option possibilities for an answer.

Name

Type

Description

Required

Default value

icon

String

The icon of the answer prefixed with the corresponding icon font. The table below describes all available icon fonts and how can they can be used:

Icon font

Version

Prefix

Example

Font Awesome

5.13.3

faw-

faw-box

Google Material Design

3.0.1.0

gmd-

gmd-add

Community Material Design

6.4.95

cmd-

cmd-upload

true

color

String

The color of the icon. The following options are available:

  • red

  • green

  • yellow

  • blue

false

blue

Examples

Example with three configured options with specific icons and colors

Grid question
{ "id": 1, "key": "customer_satisfaction", "label": "Are you happy with the provided service?", "description": null, "required": true, "type": "grid", "answers": [ { "id": 0, "value": "satisfied", "label": "Satifsfied", "nextQuestionId": 2, "options": { "icon": "faw-laugh", "color": "green" } }, { "id": 1, "value": "neutral", "label": "Neutral", "options": { "icon": "faw-meh", "color": "yellow" } }, { "id": 2, "value": "unsatisfied", "label": "Unsatisfied", "options": { "icon": "faw-angry", "color": "red" } } ] }
Last modified: 26 May 2025