{
  "name": "Complaint Form",
  "description": "Allows customers to submit complaints with details and attachments.",
  "category": "Support",
  "tags": [
    "complaint",
    "support",
    "customer service",
    "issue"
  ],
  "version": 2,
  "form_data": {
    "name": "Complaint Form",
    "heading": "Submit a Complaint",
    "description": "Share details about the issue so we can resolve it quickly.",
    "formpages": [
      1
    ],
    "pages": [
      {
        "id": 1,
        "name": "Complaint",
        "heading": "Complaint Details",
        "description": "Provide as much information as possible.",
        "folder": "0",
        "pagerows": [
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "rows": [
          {
            "id": 1,
            "name": "Contact",
            "heading": "Your Details",
            "description": "How can we reach you?",
            "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": "Enter your full name.",
                    "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": "Email Address",
                    "description": "We will contact you here.",
                    "is_required": 1,
                    "placeholder": "alex.johnson@example.com"
                  }
                ]
              }
            ]
          },
          {
            "id": 2,
            "name": "Order/Ref",
            "heading": "Reference (Optional)",
            "description": "If this relates to an order or account, include an ID.",
            "folder": "0",
            "rowcolumns": [
              3
            ],
            "columns": [
              {
                "id": 3,
                "name": "Column 1",
                "fields": [
                  3
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 3,
                    "field_type": "inputtext",
                    "name": "Reference Number",
                    "heading": "Order/Account Reference (Optional)",
                    "description": "Order ID or account ID.",
                    "is_required": 0,
                    "placeholder": "ORD-123456"
                  }
                ]
              }
            ]
          },
          {
            "id": 3,
            "name": "Type & Severity",
            "heading": "Type & Severity",
            "description": "Categorize the complaint.",
            "folder": "0",
            "rowcolumns": [
              4,
              5
            ],
            "columns": [
              {
                "id": 4,
                "name": "Column 1",
                "fields": [
                  4
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 4,
                    "field_type": "selectfield",
                    "name": "Complaint Type",
                    "heading": "Complaint Type",
                    "description": "Select a category.",
                    "is_required": 1,
                    "field_options": "{\"\": {\"Product Quality\": \"product_quality\",\"Delivery/Logistics\": \"delivery\",\"Billing\": \"billing\",\"Customer Service\": \"customer_service\",\"Other\": \"other\"}}"
                  }
                ]
              },
              {
                "id": 5,
                "name": "Column 2",
                "fields": [
                  5
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 5,
                    "field_type": "selectfield",
                    "name": "Severity",
                    "heading": "Severity",
                    "description": "Impact level.",
                    "is_required": 1,
                    "field_options": "{\"\": {\"Low\": \"low\",\"Medium\": \"medium\",\"High\": \"high\",\"Critical\": \"critical\"}}"
                  }
                ]
              }
            ]
          },
          {
            "id": 4,
            "name": "Description",
            "heading": "Describe the Issue",
            "description": "Explain what happened.",
            "folder": "0",
            "rowcolumns": [
              6
            ],
            "columns": [
              {
                "id": 6,
                "name": "Column 1",
                "fields": [
                  6
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 6,
                    "field_type": "textarea",
                    "name": "Description",
                    "heading": "Issue Description",
                    "description": "Include dates and steps to reproduce if applicable.",
                    "is_required": 1,
                    "placeholder": "Describe the issue..."
                  }
                ]
              }
            ]
          },
          {
            "id": 5,
            "name": "Attachments & Consent",
            "heading": "Attachments & Consent",
            "description": "Optional screenshots and permission to contact.",
            "folder": "0",
            "rowcolumns": [
              7
            ],
            "columns": [
              {
                "id": 7,
                "name": "Column 1",
                "fields": [
                  7
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 7,
                    "field_type": "fileupload",
                    "name": "Attachment",
                    "heading": "Attach File (Optional)",
                    "description": "Images or documents.",
                    "is_required": 0
                  }
                ]
              }
            ]
          },
          {
            "id": 6,
            "name": "Attachments & Consent (continued)",
            "heading": "Attachments & Consent",
            "description": "",
            "folder": "0",
            "rowcolumns": [
              8
            ],
            "columns": [
              {
                "id": 8,
                "name": "Column 2",
                "fields": [
                  8
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 8,
                    "field_type": "inputcheckbox",
                    "name": "Permission",
                    "heading": "I agree to be contacted regarding this complaint",
                    "description": "We will follow up for resolution.",
                    "is_required": 0,
                    "field_options": "[{\"Yes\": \"yes\"}]"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "user_action": {
      "type": "show_success_message",
      "message": "Thanks for submitting your complaint. Our support team will review and respond soon.",
      "url": ""
    }
  }
}
