Skip to content

Select one option

javier7ar edited this page Oct 11, 2017 · 6 revisions

Step object: SelectOne

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

Example:

{
  "id" : 1,
  "type" : "SelectOne",
  "title" : "Select one option",
  "helpFileName" : "help.html",
  "options" : [
    {
      "id":1,
      "text":"Option 1",
      "nextStepId" : 2
    },
    {
      "id":2,
      "text":"Option 2",
      "nextStepId" : 5
    },
    {
      "id":3,
      "text":"Option 3",
      "nextStepId" : 5
    }
  ]
}

SelectOneOption Object

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

  • id : Int. The unique identifier of the option
  • text : String. The text to show to select
  • nextStepId : Int OPTIONAL. The identifier of the next step in the workflow. If this field is not present, it is assumed that this is the last step of the workflow.
{
  "id":1,
  "text":"Option 1",
  "nextStepId" : 2
}