{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "KPT Selection Claim",
    "description": "Record whether this customer is selected for KPT. A red star * means you must answer.",
    "pages": [
      {
        "name": "kpt_customer",
        "title": "Which customer?",
        "elements": [
          {
            "type": "text",
            "name": "ecs:customerId",
            "title": "SupaMoto customer ID",
            "description": "The SupaMoto Customer ID (e.g. C21009802).",
            "isRequired": true
          }
        ]
      },
      {
        "name": "kpt_selection",
        "title": "KPT selection",
        "elements": [
          {
            "type": "boolean",
            "name": "ecs:selectedForKpt",
            "title": "Is this customer selected for KPT?",
            "isRequired": true,
            "labelTrue": "Yes",
            "labelFalse": "No"
          },
          {
            "type": "comment",
            "name": "ecs:kptSelectionReason",
            "title": "Reason for this decision",
            "description": "Explain why this customer was or was not selected.",
            "isRequired": true
          }
        ]
      },
      {
        "name": "reviewAndSubmit",
        "title": "Review",
        "elements": [
          {
            "type": "html",
            "name": "reviewMessage",
            "html": "<h3>Almost done!</h3><p>Please review your answers before submitting.</p>"
          }
        ]
      }
    ],
    "questionErrorLocation": "bottom",
    "checkErrorsMode": "onValueChanged",
    "showProgressBar": true,
    "progressBarLocation": "top",
    "pagePrevText": "Back",
    "pageNextText": "Next",
    "completeText": "Submit KPT selection claim",
    "showPreviewBeforeComplete": true
  }
}
