{
  "_namespaces": {
    "schema": "https://schema.org/",
    "ixo": "https://w3id.org/ixo/vocab/",
    "dcterms": "http://purl.org/dc/terms/"
  },
  "title": "Equipment and resources claim",
  "description": "One invoice per claim. A red star * means you must answer.",
  "showProgressBar": "top",
  "progressBarType": "pages",
  "showQuestionNumbers": "off",
  "questionErrorLocation": "bottom",
  "requiredText": "*",
  "completeText": "Send",
  "pageNextText": "Next",
  "pagePrevText": "Back",
  "pages": [
    {
      "name": "page_who",
      "title": "Who you are",
      "elements": [
        {
          "type": "text",
          "name": "schema:name",
          "title": "Your full name",
          "isRequired": true,
          "requiredErrorText": "Please answer this."
        }
      ]
    },
    {
      "name": "page_claim",
      "title": "Your claim",
      "elements": [
        {
          "type": "checkbox",
          "name": "ixo:serviceType_resourceKind",
          "title": "What is this for?",
          "isRequired": true,
          "requiredErrorText": "Please choose at least one.",
          "choices": [
            {
              "value": "stationery",
              "text": "Stationery"
            },
            {
              "value": "printing",
              "text": "Printing"
            },
            {
              "value": "tablet_rental",
              "text": "Tablet rental"
            }
          ]
        },
        {
          "type": "file",
          "name": "ixo:evidenceType_invoice",
          "title": "Invoice from provider",
          "sourceType": "file-camera",
          "allowMultiple": true,
          "maxSize": 10485760,
          "storeDataAsText": false,
          "waitForUpload": true,
          "filePlaceholder": "Take a photo with your camera, or choose files from this phone or computer.",
          "photoPlaceholder": "Take a photo with your camera.",
          "isRequired": true,
          "requiredErrorText": "Please add this."
        },
        {
          "type": "text",
          "name": "schema:value",
          "title": "Amount claimed",
          "inputType": "number",
          "min": 0,
          "isRequired": true,
          "requiredErrorText": "Please write the amount claimed.",
          "validators": [
            {
              "type": "numeric",
              "minValue": 0,
              "text": "Please write an amount, with no letters."
            }
          ]
        },
        {
          "type": "text",
          "name": "schema:priceCurrency",
          "title": "Currency",
          "defaultValue": "ZAR",
          "readOnly": true
        },
        {
          "type": "comment",
          "name": "dcterms:description_use",
          "title": "How the resources were used",
          "rows": 3,
          "isRequired": true,
          "requiredErrorText": "Please answer this."
        }
      ]
    }
  ]
}
