Choice Options Object

The “Choice” parameter represents either a radio button control (single choice) on the form. It is used when one selection must be made only. If multiple selections can or need to be made the better option is to use the “Checkbox” parameter.

The value type is string.

name

string

Label of the widget.

Example: Which service you are interested in?

hintText

string

Provides help text describing what value is expected in control.

Example: Select one value

optionsList

selectionOption

Effectively a data source for the parameter options

component provides drag and drop functionality to determine the ordering of options.

Example:

defaultValue

string

Used to mark default selection if needed (one selection only).

Example: Win11x64

Example

{
  "name": "Which service you are interested in?",
  "hintText": "Select one value",
  "optionsList": [
    {
      "label": "Microsoft Office 365",
      "description": "Office 365 product",
      "value": "MsOffice365"
    },
    {
      "label": "Dynamics 365",
      "value": "Dynam365"
    },
    {
      "label": "Windows 11",
      "description": "Latest Windows 11",
      "value": "Win11x64"
    }
  ],
  "defaultValue": "Dynam365"
}

Value Example

Last updated

Was this helpful?