{
  "name": "HR Leave Request",
  "description": "Submit a leave/time-off request for approval.",
  "category": "Application",
  "tags": ["hr", "leave", "time off", "absence"],
  "version": 1,
  "form_data": {
    "name": "HR Leave Request",
    "heading": "Leave Request",
    "description": "Fill this to request time off.",
    "formpages": [1],
    "pages": [
      {"id": 1, "name": "Leave", "heading": "Leave Details", "description": "Dates and reason.", "folder": "0", "pagerows": [1,2,3,4],
        "rows": [
          {"id": 1, "name": "Employee", "heading": "Employee Information", "description": "Name and department.", "folder": "0", "rowcolumns": [1,2],
            "columns": [
              {"id": 1, "name": "Column 1", "fields": [1], "width": 6, "field_data": [
                {"id": 1, "field_type": "inputtext", "name": "Employee Name", "heading": "Employee Name", "description": "Your full name.", "is_required": 1, "placeholder": "Alex Johnson"}
              ]},
              {"id": 2, "name": "Column 2", "fields": [2], "width": 6, "field_data": [
                {"id": 2, "field_type": "selectfield", "name": "Department", "heading": "Department", "description": "Select department.", "is_required": 1, "field_options": "{\"\": {\"Engineering\": \"engineering\",\"Marketing\": \"marketing\",\"Sales\": \"sales\",\"Finance\": \"finance\",\"HR\": \"hr\",\"Operations\": \"operations\"}}"}
              ]}
            ]
          },
          {"id": 2, "name": "Type & Dates", "heading": "Leave Type & Dates", "description": "Choose type and duration.", "folder": "0", "rowcolumns": [3,4,5],
            "columns": [
              {"id": 3, "name": "Column 1", "fields": [3], "width": 4, "field_data": [
                {"id": 3, "field_type": "selectfield", "name": "Leave Type", "heading": "Leave Type", "description": "Type of leave.", "is_required": 1, "field_options": "{\"\": {\"Casual\": \"casual\",\"Sick\": \"sick\",\"Vacation\": \"vacation\",\"Maternity/Paternity\": \"parental\",\"Unpaid\": \"unpaid\"}}"}
              ]},
              {"id": 4, "name": "Column 2", "fields": [4], "width": 4, "field_data": [
                {"id": 4, "field_type": "inputdate", "name": "Start Date", "heading": "Start Date", "description": "Leave start date.", "is_required": 1}
              ]},
              {"id": 5, "name": "Column 3", "fields": [5], "width": 4, "field_data": [
                {"id": 5, "field_type": "inputdate", "name": "End Date", "heading": "End Date", "description": "Leave end date.", "is_required": 1}
              ]}
            ]
          },
          {"id": 3, "name": "Reason & Contact", "heading": "Reason & Contact", "description": "Reason and contact during leave.", "folder": "0", "rowcolumns": [6,7],
            "columns": [
              {"id": 6, "name": "Column 1", "fields": [6], "width": 6, "field_data": [
                {"id": 6, "field_type": "textarea", "name": "Reason", "heading": "Reason for Leave", "description": "Provide a brief reason.", "is_required": 1, "placeholder": "Family event, illness, travel, etc."}
              ]},
              {"id": 7, "name": "Column 2", "fields": [7], "width": 6, "field_data": [
                {"id": 7, "field_type": "inputtext", "name": "Contact During Leave", "heading": "Contact During Leave", "description": "Phone/email while away.", "is_required": 0, "placeholder": "+1 (555) 987-6543 / alt email"}
              ]}
            ]
          },
          {"id": 4, "name": "Acknowledgement", "heading": "Acknowledgement", "description": "Confirm policy.", "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 confirm this request complies with leave policy", "description": "HR policy acknowledgement.", "is_required": 1, "field_options": "[{\"I agree\": \"agree\"}]"}
              ]}
            ]
          }
        ]
      }
    ],
    "user_action": {"type": "show_success_message", "message": "Your leave request has been submitted for approval.", "url": ""}
  }
}
