{
  "title": "Lead Generator Information",
  "description": "Please fill in the details for the collection partner.",
  "pages": [
    {
      "name": "page1",
      "elements": [
        {
          "type": "text",
          "name": "ecs:leadGeneratorID",
          "title": "Lead Generator ID",
          "isRequired": true,
          "validators": [
            {
              "type": "text",
              "minLength": 1
            }
          ]
        },
        {
          "type": "text",
          "name": "schema:givenName",
          "title": "First Name",
          "isRequired": true,
          "validators": [
            {
              "type": "regex",
              "text": "Use the format xxxxxx/xx/x",
              "regex": "^[A-Za-z ]+$"
            }
          ]
        },
        {
          "type": "text",
          "name": "schema:familyName",
          "title": "Last Name",
          "isRequired": true,
          "validators": [
            {
              "type": "regex",
              "text": "Use the format xxxxxx/xx/x",
              "regex": "^[A-Za-z ]+$"
            }
          ]
        },
        {
          "type": "dropdown",
          "name": "ecs:partnerType",
          "title": "Partner Type",
          "isRequired": true,
          "choices": [
            "Lead Generator",
            "Reseller",
            "Shop"
          ],
          "showOtherItem": true
        },
        {
          "type": "map-grid-selector",
          "name": "schema:geoCoordinates",
          "title": "Lead Generator Location"
        },
        {
          "type": "text",
          "name": "telephone",
          "title": "Phone Number",
          "validators": [
            {
              "type": "regex",
              "text": "Please enter the phone number in international format, including the country code (e.g. +260977123456).",
              "regex": "^\\+[1-9]\\d{6,14}$"
            }
          ],
          "inputType": "tel"
        },
        {
          "type": "dropdown",
          "name": "activityStatus",
          "title": "Status",
          "isRequired": true,
          "choices": [
            {
              "value": "ACTIVE",
              "text": "Active"
            },
            {
              "value": "INACTIVE",
              "text": "Inactive"
            }
          ]
        }
      ]
    }
  ]
}