Skip to content

Select multiple options

javier7ar edited this page Oct 11, 2017 · 5 revisions

Step object: MultipleSelect

  • type : "MultipleSelect"
  • title : String. The text to show as a title or instructions
  • options : Array of MultipleSelectOption objects. The options to select

Example:

{
  "id" : 1,
  "type" : "MultipleSelect",
  "title" : "Select what you see",
  "helpFileName" : "help.html",
  "options" : [
    {
      "id":1,
      "text":"Trees"
    },
    {
      "id":2,
      "text":"Trash"
    },
    {
      "id":3,
      "text":"Water"
    },
    {
      "id":4,
      "text":"Animals"
    }
  ],
  "nextStepId" : 2
}

MultipleSelectOption Object

Used in step objects of type MultipleSelect. It represents the options to select. It has 2 fields:

  • id : Int. The unique identifier of the option
  • text : String. The text to show to select
{
  "id":1,
  "text":"Option 1"
}