[
  {
    "name": "media",
    "type": "group",
    "label": "Media",
    "fields": [
      {
        "name": "type",
        "type": "library",
        "label": "Type",
        "options": [
          "H5P.Image 1.0",
          "H5P.Video 1.2"
        ],
        "optional": true,
        "description": "Optional media to display above the question."
      }
    ]
  },
  {
    "name": "question",
    "type": "text",
    "widget": "html",
    "label": "Question",
    "enterMode": "p",
    "tags": [
      "strong",
      "em",
      "sub",
      "sup",
      "h2",
      "h3"
    ]
  },
  {
    "name": "answers",
    "type": "list",
    "label": "Available options",
    "description": "The alternatives the user may choose from.",
    "entity": "option",
    "min": 1,
    "defaultNum": 2,
    "field": {
      "name": "answer",
      "type": "group",
      "label": "Option",
      "fields": [
        {
          "name": "text",
          "type": "text",
          "widget": "html",
          "label": "Text",
          "tags": [
            "strong",
            "em",
            "sub",
            "sup"
          ]
        },
        {
          "name": "correct",
          "type": "boolean",
          "label": "Correct"
        },
        {
          "name": "tipsAndFeedback",
          "type": "group",
          "label": "Tips and feedback",
          "optional": true,
          "fields": [
            {
              "name": "tip",
              "label": "Tip text",
              "type": "text",
              "widget": "html",
              "tags": ["p", "br", "strong", "em"],
              "optional": true
            },
            {
              "name": "chosenFeedback",
              "type": "text",
              "widget": "html",
              "label": "Chosen feedback",
              "description": "Will be displayed when the users checks his answer.",
              "optional": true,
              "tags": [
                "strong",
                "em",
                "sub",
                "sup"
              ]
            },
            {
              "name": "notChosenFeedback",
              "type": "text",
              "widget": "html",
              "label": "Not chosen feedback",
              "description": "Will be displayed when the solution is displayed.",
              "optional": true,
              "tags": [
                "strong",
                "em",
                "sub",
                "sup"
              ]
            }
          ]
        }
      ]
    }
  },
  {
    "name": "UI",
    "type": "group",
    "label": "User interface translations for multichoice",
    "common": true,
    "fields": [
      {
        "name": "checkAnswerButton",
        "type": "text",
        "label": "Check answer button label",
        "default": "Check"
      },
      {
        "name": "showSolutionButton",
        "type": "text",
        "label": "Show solution button label",
        "default": "Show solution"
      },
      {
        "name": "tryAgainButton",
        "type": "text",
        "label": "Retry button label",
        "default": "Retry",
        "optional": true
      },
      {
        "name": "tipsLabel",
        "type": "text",
        "label": "Tip label",
        "default": "Show tip",
        "optional": true
      },
      {
        "name": "correctText",
        "type": "text",
        "label": "Correct answer feedback",
        "default": "Correct!",
        "deprecated": true
      },
      {
        "name": "almostText",
        "type": "text",
        "label": "Almost correct answer feedback",
        "default": "Almost!",
        "deprecated": true
      },
      {
        "name": "wrongText",
        "type": "text",
        "label": "Not correct answer feedback",
        "default": "Wrong",
        "deprecated": true
      },
      {
        "name": "scoreBarLabel",
        "type": "text",
        "label": "Score Bar Label",
        "default": "Score",
        "optional": true
      },
      {
        "name": "tipAvailable",
        "type": "text",
        "label": "Tip Available",
        "default": "Tip available",
        "optional": true
      },
      {
        "name": "feedbackAvailable",
        "type": "text",
        "label": "Feedback Available",
        "default": "Feedback available",
        "optional": true
      },
      {
        "name": "readFeedback",
        "type": "text",
        "label": "Read Feedback",
        "default": "Read feedback",
        "optional": true
      },
      {
        "name": "wrongAnswer",
        "type": "text",
        "label": "Wrong Answer",
        "default": "Wrong answer",
        "optional": true
      },
      {
        "name": "correctAnswer",
        "type": "text",
        "label": "Correct Answer",
        "default": "Correct answer",
        "optional": true
      },
      {
        "name": "shouldCheck",
        "type": "text",
        "label": "Option should have been checked",
        "default": "Should have been checked",
        "optional": true
      },
      {
        "name": "shouldNotCheck",
        "type": "text",
        "label": "Option should not have been checked",
        "default": "Should not have been checked",
        "optional": true
      },
      {
        "label": "Text for \"Requires answer\" message",
        "name": "noInput",
        "type": "text",
        "default": "Please answer before viewing the solution",
        "optional": true
      }
    ]
  },
  {
    "name": "behaviour",
    "type": "group",
    "label": "Behavioural settings.",
    "description": "These options will let you control how the task behaves.",
    "optional": true,
    "fields": [
      {
        "name": "enableRetry",
        "type": "boolean",
        "label": "Enable \"Retry\" button",
        "default": true,
        "optional": true
      },
      {
        "name": "enableSolutionsButton",
        "type": "boolean",
        "label": "Enable \"Show Solution\" button",
        "default": true,
        "optional": true
      },
      {
        "name": "type",
        "type": "select",
        "label": "Question Type",
        "description": "Select the look and behaviour of the question.",
        "default": "auto",
        "options": [
          {
            "value": "auto",
            "label": "Automatic"
          },
          {
            "value": "multi",
            "label": "Multiple Choice (Checkboxes)"
          },
          {
            "value": "single",
            "label": "Single Choice (Radio Buttons)"
          }
        ]
      },
      {
        "name": "singlePoint",
        "type": "boolean",
        "label": "Give one point for the whole task",
        "description": "Enable to give a total of one point for multiple correct answers. This will not be an option in \"Single answer\" mode.",
        "default": false
      },
      {
        "name": "randomAnswers",
        "type": "boolean",
        "label": "Randomize answers",
        "description": "Enable to randomize the order of questions on display.",
        "default": true
      },
      {
        "label": "Require answer before the solution can be viewed",
        "name": "showSolutionsRequiresInput",
        "type": "boolean",
        "default": true,
        "optional": true
      },
      {
        "label": "Disable image zooming for question image",
        "name": "disableImageZooming",
        "type": "boolean",
        "default": false,
        "optional": true
      },
      {
        "label": "Show confirmation dialog on \"Check\"",
        "name": "confirmCheckDialog",
        "type": "boolean",
        "default": false
      },
      {
        "label": "Show confirmation dialog on \"Retry\"",
        "name": "confirmRetryDialog",
        "type": "boolean",
        "default": false
      }
    ]
  },
  {
    "label": "Check confirmation dialog",
    "name": "confirmCheck",
    "type": "group",
    "common": true,
    "fields": [
      {
        "label": "Header text",
        "name": "header",
        "type": "text",
        "default": "Finish ?"
      },
      {
        "label": "Body text",
        "name": "body",
        "type": "text",
        "default": "Are you sure you wish to finish ?",
        "widget": "html",
        "enterMode": "p",
        "tags": [
          "strong",
          "em",
          "del",
          "u"
        ]
      },
      {
        "label": "Cancel button label",
        "name": "cancelLabel",
        "type": "text",
        "default": "Cancel"
      },
      {
        "label": "Confirm button label",
        "name": "confirmLabel",
        "type": "text",
        "default": "Finish"
      }
    ]
  },
  {
    "label": "Retry confirmation dialog",
    "name": "confirmRetry",
    "type": "group",
    "common": true,
    "fields": [
      {
        "label": "Header text",
        "name": "header",
        "type": "text",
        "default": "Retry ?"
      },
      {
        "label": "Body text",
        "name": "body",
        "type": "text",
        "default": "Are you sure you wish to retry ?",
        "widget": "html",
        "enterMode": "p",
        "tags": [
          "strong",
          "em",
          "del",
          "u"
        ]
      },
      {
        "label": "Cancel button label",
        "name": "cancelLabel",
        "type": "text",
        "default": "Cancel"
      },
      {
        "label": "Confirm button label",
        "name": "confirmLabel",
        "type": "text",
        "default": "Confirm"
      }
    ]
  }
]
