{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Physical Enumerator Verification",
    "description": "A short checklist to confirm the entrepreneur's identity and business before seed funding is released.",
    "logoPosition": "right",
    "pages": [
      {
        "name": "intro",
        "elements": [
          {
            "type": "html",
            "name": "intro_text",
            "html": "<h2>Welcome, enumerator</h2><p>This form helps us check that an entrepreneur's details and business are real before they get seed funding.</p><ul><li>You will see the entrepreneur's saved details first.</li><li>Then you answer questions about what you see in person).</li><li>A red star <strong>*</strong> means you must answer that question.</li><li>If an answer is <em>No</em> or <em>Does not match</em>, you must add a comment to explain.</li><li>You can go back if you make a mistake.</li></ul><p>This takes about 10 to 15 minutes.</p><p>IMPORTANT: Make sure your device location is on!<p></p>"
          },
          {
            "type": "text",
            "name": "ixo:baseClaimCID",
            "visible": false,
            "title": "Base Claim CID",
            "readOnly": true
          }
        ]
      },
      {
        "name": "about_enumerator",
        "elements": [
          {
            "type": "panel",
            "name": "schema:Person",
            "elements": [
              {
                "type": "text",
                "name": "schema:givenName",
                "title": "What is your first name?",
                "requiredErrorText": "Please tell us your first name."
              },
              {
                "type": "text",
                "name": "schema:familyName",
                "title": "What is your last name?",
                "isRequired": true,
                "requiredErrorText": "Please tell us your last name."
              }
            ],
            "title": "Your details"
          }
        ],
        "title": "About you (the enumerator)"
      },
      {
        "name": "about_business",
        "elements": [
          {
            "type": "panel",
            "name": "ixo:VerificationSubject",
            "elements": [
              {
                "type": "text",
                "name": "schema:name",
                "title": "What is the entrepreneur's full name?",
                "description": "First name and last name together. For example: Thando Nkosi.",
                "requiredErrorText": "Please enter the entrepreneur's full name."
              },
              {
                "type": "text",
                "name": "schema:legalName",
                "title": "What is the business name?",
                "description": "The name the entrepreneur uses for their business. For example: Thando's Welding Works.",
                "requiredErrorText": "Please enter the business name."
              },
              {
                "type": "text",
                "name": "schema:activity",
                "title": "What products/services do you offer?",
                "description": "Briefly describe what the business does. "
              }
            ],
            "title": "Entrepreneur and business"
          }
        ],
        "title": "About the business",
        "description": "Ask the entrepreneur to tell you their full name and the name of their business. Type what they say, exactly how they say it."
      },
      {
        "name": "identity_verification",
        "elements": [
          {
            "type": "radiogroup",
            "name": "ixo:faceMatchesIdCard",
            "title": "Does the entrepreneur's face match the photo on their ID card?",
            "requiredErrorText": "Please choose one.",
            "choices": [
              {
                "value": "match",
                "text": "Yes, it matches"
              },
              {
                "value": "no_match",
                "text": "No, it does not match"
              },
              {
                "value": "unable",
                "text": "Cannot tell (ID photo is damaged or unclear)"
              }
            ]
          },
          {
            "type": "comment",
            "name": "ixo:faceMatchesIdCard_comment",
            "visibleIf": "{ixo:faceMatchesIdCard} = 'no_match' or {ixo:faceMatchesIdCard} = 'unable'",
            "title": "Please explain what you saw.",
            "description": "For example: 'The photo is very old but the face looks like the same person.'",
            "requiredErrorText": "A comment is needed when the answer is not a clear yes."
          },
          {
            "type": "radiogroup",
            "name": "ixo:physicalIdMatchesPlatformId",
            "title": "Is the ID card in front of you the same as the ID on the platform?",
            "description": "Check the name, ID number, and photo on both.",
            "requiredErrorText": "Please choose one.",
            "choices": [
              {
                "value": "match",
                "text": "Yes, it is the same"
              },
              {
                "value": "no_match",
                "text": "No, it is different"
              },
              {
                "value": "unable",
                "text": "The entrepreneur could not show an ID card"
              }
            ]
          },
          {
            "type": "comment",
            "name": "ixo:physicalIdMatchesPlatformId_comment",
            "visibleIf": "{ixo:physicalIdMatchesPlatformId} = 'no_match' or {ixo:physicalIdMatchesPlatformId} = 'unable'",
            "title": "Please explain what you saw.",
            "description": "For example: 'The ID number is the same but the name is spelled differently.'",
            "requiredErrorText": "A comment is needed when the answer is not a clear yes."
          }
        ],
        "title": "Check 1 — Identity",
        "description": "Now look at the entrepreneur and the ID card they are holding. Answer these questions about what you see."
      },
      {
        "name": "business_verification",
        "elements": [
          {
            "type": "file",
            "name": "ixo:evidencePhotoBusinessCertificate",
            "title": "Take a photo of the business registration certificate.",
            "description": "Make sure the business name and number are easy to read.",
            "requiredErrorText": "Please take a photo of the certificate.",
            "allowMultiple": true,
            "acceptedTypes": "image/*",
            "waitForUpload": true,
            "sourceType": "file-camera"
          },
          {
            "type": "radiogroup",
            "name": "ixo:registrationCertificateMatches",
            "title": "Is the business registration certificate match the information provided in the original submission?",
            "description": "Check the business name, owner/business partners, and business number (on the bank account confirmation letter).",
            "requiredErrorText": "Please choose one.",
            "choices": [
              {
                "value": "match",
                "text": "Yes, it is the same"
              },
              {
                "value": "no_match",
                "text": "No, it is different"
              },
              {
                "value": "unable",
                "text": "The entrepreneur could not show the certificate"
              }
            ]
          },
          {
            "type": "comment",
            "name": "ixo:registrationCertificateMatches_comment",
            "visibleIf": "{ixo:registrationCertificateMatches} = 'no_match' or {ixo:registrationCertificateMatches} = 'unable'",
            "title": "Please explain what you saw.",
            "requiredErrorText": "A comment is needed when the answer is not a clear yes."
          }
        ],
        "title": "Check 2 — Business",
        "description": "Now ask the entrepreneur about their business. Compare what they say with the business plan you read."
      },
      {
        "name": "visit_record",
        "elements": [
          {
            "type": "radiogroup",
            "name": "schema:locationCreated",
            "title": "Where is this visit happening?",
            "requiredErrorText": "Please choose where the visit is happening.",
            "choices": [
              {
                "value": "business_location",
                "text": "At the business (shop, farm, workshop, office)"
              },
              {
                "value": "residence",
                "text": "At the entrepreneur's home"
              },
              {
                "value": "other",
                "text": "Somewhere else"
              }
            ]
          },
          {
            "type": "comment",
            "name": "schema:locationCreated_comment",
            "visibleIf": "{schema:locationCreated} = 'other'",
            "title": "Please tell us where.",
            "requiredErrorText": "Please describe the location."
          },
          {
            "type": "map-grid-selector",
            "name": "unl:geolocation",
            "title": "Mark your current location",
            "description": "Enable your device location. Zoom in until you see a grid appear on the map, select the grid block you are in. Make sure the location details are displaying below the map before proceeding. ",
            "gridPrecision": 9
          },
          {
            "type": "file",
            "name": "ixo:evidencePhotoBeneficiary",
            "title": "Take a photo of the entrepreneur.",
            "description": "A clear photo of their face. Ask before you take the photo.",
            "requiredErrorText": "Please take a photo of the entrepreneur.",
            "acceptedTypes": "image/*",
            "waitForUpload": true,
            "sourceType": "file-camera"
          },
          {
            "type": "file",
            "name": "ixo:evidencePhotoBusiness",
            "title": "Take a photo of the business.",
            "description": "The shop front, workshop, farm, or workplace.",
            "requiredErrorText": "Please take a photo of the business.",
            "acceptedTypes": "image/*",
            "waitForUpload": true,
            "sourceType": "file-camera"
          },
          {
            "type": "file",
            "name": "ixo:evidencePhotoIdCard",
            "title": "Take a photo of the ID card.",
            "description": "Make sure the photo, name, and number are easy to read.",
            "requiredErrorText": "Please take a photo of the ID card.",
            "acceptedTypes": "image/*",
            "waitForUpload": true,
            "sourceType": "file-camera"
          },
          {
            "type": "comment",
            "name": "dcterms:description",
            "title": "General notes about the visit",
            "description": "Write down anything else we should know. For example: 'The entrepreneur was shy but answered all questions', or 'The shop was closed but neighbours confirmed it is hers'."
          }
        ],
        "title": "Check 3 — Record the visit",
        "description": "Now record where you are and take the photos we need."
      },
      {
        "name": "submit",
        "elements": [
          {
            "type": "html",
            "name": "outro_text",
            "html": "<h2>You are done</h2><p>Please check your answers by clicking <strong>Back</strong>. When you are happy, click <strong>Submit verification</strong>.</p><p>Thank you for your work today.</p>"
          }
        ]
      }
    ],
    "showQuestionNumbers": "on",
    "questionErrorLocation": "bottom",
    "showProgressBar": true,
    "startSurveyText": "Start verification",
    "pagePrevText": "Back",
    "pageNextText": "Next",
    "completeText": "Submit verification",
    "firstPageIsStartPage": true
  }
}