{
  "name": "Employee Onboarding Form",
  "description": "Collects new hire information for HR onboarding.",
  "category": "Application",
  "tags": [
    "employee",
    "onboarding",
    "hr",
    "new hire"
  ],
  "version": 2,
  "form_data": {
    "name": "Employee Onboarding Form",
    "heading": "New Hire Onboarding",
    "description": "Provide details to complete onboarding.",
    "formpages": [
      1
    ],
    "pages": [
      {
        "id": 1,
        "name": "Onboarding",
        "heading": "Employee Information",
        "description": "Personal and employment details.",
        "folder": "0",
        "pagerows": [
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "rows": [
          {
            "id": 1,
            "name": "Personal",
            "heading": "Personal Details",
            "description": "Legal name and contacts.",
            "folder": "0",
            "rowcolumns": [
              1,
              2
            ],
            "columns": [
              {
                "id": 1,
                "name": "Column 1",
                "fields": [
                  1
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 1,
                    "field_type": "inputtext",
                    "name": "Full Name",
                    "heading": "Full Name",
                    "description": "As per government ID.",
                    "is_required": 1,
                    "placeholder": "Alex Johnson"
                  }
                ]
              },
              {
                "id": 2,
                "name": "Column 2",
                "fields": [
                  2
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 2,
                    "field_type": "inputemail",
                    "name": "Email",
                    "heading": "Work Email",
                    "description": "Official or personal until provisioned.",
                    "is_required": 1,
                    "placeholder": "alex.johnson@example.com"
                  }
                ]
              }
            ]
          },
          {
            "id": 2,
            "name": "Contact & Start",
            "heading": "Contact & Start",
            "description": "Phone and start date.",
            "folder": "0",
            "rowcolumns": [
              3,
              4
            ],
            "columns": [
              {
                "id": 3,
                "name": "Column 1",
                "fields": [
                  3
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 3,
                    "field_type": "inputtext",
                    "name": "Phone",
                    "heading": "Phone Number",
                    "description": "Include country code.",
                    "is_required": 1,
                    "placeholder": "+1 (555) 123-4567"
                  }
                ]
              },
              {
                "id": 4,
                "name": "Column 2",
                "fields": [
                  4
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 4,
                    "field_type": "inputdate",
                    "name": "Start Date",
                    "heading": "Start Date",
                    "description": "Tentative start date.",
                    "is_required": 1
                  }
                ]
              }
            ]
          },
          {
            "id": 3,
            "name": "Employment",
            "heading": "Employment Details",
            "description": "Role, department and location.",
            "folder": "0",
            "rowcolumns": [
              5,
              6
            ],
            "columns": [
              {
                "id": 5,
                "name": "Column 1",
                "fields": [
                  5
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 5,
                    "field_type": "selectfield",
                    "name": "Department",
                    "heading": "Department",
                    "description": "Select assigned department.",
                    "is_required": 1,
                    "field_options": "{\"\": {\"Engineering\": \"engineering\",\"Product\": \"product\",\"Design\": \"design\",\"Marketing\": \"marketing\",\"Sales\": \"sales\",\"HR\": \"hr\",\"Finance\": \"finance\"}}"
                  }
                ]
              },
              {
                "id": 6,
                "name": "Column 2",
                "fields": [
                  6
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 6,
                    "field_type": "selectfield",
                    "name": "Employment Type",
                    "heading": "Employment Type",
                    "description": "Choose type.",
                    "is_required": 1,
                    "field_options": "{\"\": {\"Full-time\": \"full_time\",\"Part-time\": \"part_time\",\"Contract\": \"contract\",\"Intern\": \"intern\"}}"
                  }
                ]
              }
            ]
          },
          {
            "id": 4,
            "name": "Address",
            "heading": "Address",
            "description": "Residential address.",
            "folder": "0",
            "rowcolumns": [
              7
            ],
            "columns": [
              {
                "id": 7,
                "name": "Column 1",
                "fields": [
                  7
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 7,
                    "field_type": "textarea",
                    "name": "Address",
                    "heading": "Full Address",
                    "description": "Current address.",
                    "is_required": 1,
                    "placeholder": "Apt/Suite, Street, City, State/Region, ZIP/Postal Code"
                  }
                ]
              }
            ]
          },
          {
            "id": 5,
            "name": "Consent",
            "heading": "Acknowledgements",
            "description": "Policy acceptance.",
            "folder": "0",
            "rowcolumns": [
              8
            ],
            "columns": [
              {
                "id": 8,
                "name": "Column 1",
                "fields": [
                  8
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 8,
                    "field_type": "inputcheckbox",
                    "name": "Policy Consent",
                    "heading": "I acknowledge company policies",
                    "description": "Employee handbook & code of conduct.",
                    "is_required": 1,
                    "field_options": "[{\"I agree\": \"agree\"}]"
                  }
                ]
              }
            ]
          },
          {
            "id": 6,
            "name": "Consent (continued)",
            "heading": "Acknowledgements",
            "description": "",
            "folder": "0",
            "rowcolumns": [
              9
            ],
            "columns": [
              {
                "id": 9,
                "name": "Column 2",
                "fields": [
                  9
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 9,
                    "field_type": "fileupload",
                    "name": "ID Proof",
                    "heading": "Upload ID Proof (Optional)",
                    "description": "Government ID scan/photo.",
                    "is_required": 0
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "user_action": {
      "type": "show_success_message",
      "message": "Thanks! Your onboarding details were submitted.",
      "url": ""
    }
  }
}
