{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "K2C Canopy for Communities: Tree Planting Verification Survey",
    "description": "Capture field details and verification evidence for a planted tree.",
    "pages": [
      {
        "name": "page1",
        "elements": [
          {
            "type": "text",
            "name": "schema:agent",
            "title": "Planting Agent Name",
            "description": "Enter your full name (first name and surname).",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "schema:addressLocality",
            "title": "Village Name",
            "description": "Name of the village where the planting is taking place.",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "schema:recipient",
            "title": "Household Owner Name",
            "description": "Full name and surname of the person receiving or owning the household.",
            "isRequired": true
          },
          {
            "type": "dropdown",
            "name": "ixo:plantCategory",
            "title": "Plant Category",
            "description": "Choose the type of tree or plant being planted.",
            "isRequired": true,
            "choices": [
              "Fruit Tree",
              "Medicinal Tree",
              "Shade / Indigenous Tree",
              "Other Plant Species"
            ]
          },
          {
            "type": "text",
            "name": "ixo:otherPlantCategory",
            "visibleIf": "{ixo:plantCategory} = 'Other Plant Species'",
            "title": "Specify Other Category",
            "description": "Please enter the category if not listed above.",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "ixo:treeSpecies",
            "title": "Tree Species Name",
            "description": "Enter the common or scientific name (for example: Mango or Mangifera indica).",
            "isRequired": true
          },
          {
            "type": "map-grid-selector",
            "name": "geo:location",
            "title": "Geolocation of the Planted Tree",
            "description": "Capture the GPS coordinates for the site.",
            "gridPrecision": 5
          },
          {
            "type": "file",
            "name": "ixo:photoBefore",
            "title": "Picture BEFORE Planting",
            "description": "Photo of the prepared hole or planting site.",
            "isRequired": true,
            "acceptedTypes": "image/*",
            "maxSize": 5242880,
            "sourceType": "file-camera"
          },
          {
            "type": "file",
            "name": "ixo:photoAfter",
            "title": "Picture AFTER Planting",
            "description": "Photo of the planted tree in the ground.",
            "isRequired": true,
            "acceptedTypes": "image/*",
            "maxSize": 5242880,
            "sourceType": "file-camera"
          },
          {
            "type": "file",
            "name": "ixo:recipientPhoto",
            "title": "Picture of the Household Owner",
            "description": "Photo of the recipient or household owner.",
            "isRequired": true,
            "acceptedTypes": "image/*",
            "maxSize": 5242880,
            "sourceType": "file-camera"
          },
          {
            "type": "signaturepad",
            "name": "ixo:recipientSignature",
            "title": "Signature of Recipient",
            "description": "Signature confirming receipt and verification.",
            "isRequired": true
          }
        ],
        "title": "Submit a Claim",
        "description": "Submit a claim for planting a tree. Required questions are marked with a red star (*)."
      }
    ],
    "showQuestionNumbers": "on",
    "questionErrorLocation": "bottom",
    "showProgressBar": true,
    "progressBarLocation": "top",
    "pagePrevText": "Back",
    "pageNextText": "Next",
    "completeText": "Submit Claim"
  }
}