multipleChoiceResponseArea.json 1.41 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
{
  "description": "Allows choices between an arbitrary number of radio-button choices.",
  "allOf": [
    {"$ref": "/response-areas/definitions/commonResponseAreaProperties.json"},
    {
      "properties": {
        "type": {
          "enum": [ "multipleChoiceResponseArea" ]
        },
        "choices": {
          "type": "array",
          "items": {
            "$ref": "/response-areas/definitions/choice.json"
          }
        },
        "other": {
          "type": "string",
          "description": "Text label for an 'other' choice. E.g., 'Other', or 'Somewhere else'. If selected, the user will be prompted for an optional text value which will be stored in an 'otherResponse' field in the Results structure. If this field is not defined, the 'Other' choice is not presented."
        },
        "verticalSpacing": {
          "type": "integer",
          "description": "Vertical spacing between buttons, given in [px]"
        },
        "delayEnable": {
          "type": "integer",
          "description": "Delay (ms) before the buttons are active to accept a response",
          "default": 0
Marc Shapiro's avatar
Marc Shapiro committed
28 29 30 31 32
        },
        "feedback": {
          "type": "string",
          "enum": ["gradeResponse", "showCorrect" ],
          "description": "Provide feedback after submit. 'gradeResponse' will mark answers correct/incorrect(green/red).  'showCorrect' will grade AND show the correct choices."
33 34 35 36 37
        }
      }
    }
  ]
}