Skip to content

Choices By URL Schema

Use choicesByUrl when a choice-based question should load choices from an external JSON endpoint.

Prefer static choices when options are known at design time. Use choicesByUrl only when the list must stay dynamic.

{
"url": "https://example.com/api/departments",
"valueName": "id",
"titleName": "name"
}
  • Type: string
  • Required: Yes

Endpoint that returns choice data.

  • Type: string

Field name from each returned item to use as the stored choice value.

  • Type: string

Field name from each returned item to use as the visible choice label.

  • Type: string

Path to the array inside the response object.

  • Type: boolean

Allows the endpoint to return no choices without treating it as an error.

{
"type": "dropdown",
"name": "country",
"title": "Country",
"choicesByUrl": {
"url": "https://example.com/countries.json",
"path": "items",
"valueName": "code",
"titleName": "label"
}
}