{
  "slug": "support-request",
  "name": "Support request",
  "description": "Take a support ticket with the version, the environment, and a screenshot already attached.",
  "page": "https://lazerforms.com/use-cases/support-request",
  "create_url": "https://lazerforms.com/signup?template=support-request",
  "fields": [
    {
      "id": "sr_subject",
      "type": "text",
      "label": "One line summary",
      "required": true,
      "description": ""
    },
    {
      "id": "sr_impact",
      "type": "select",
      "label": "Impact",
      "required": true,
      "description": "",
      "options": [
        {
          "label": "Cannot work at all",
          "value": "cannot_work_at_all"
        },
        {
          "label": "A workaround exists but it is painful",
          "value": "a_workaround_exists_but_it_is_painful"
        },
        {
          "label": "Minor annoyance",
          "value": "minor_annoyance"
        },
        {
          "label": "A question, nothing is broken",
          "value": "a_question_nothing_is_broken"
        }
      ]
    },
    {
      "id": "sr_steps",
      "type": "textarea",
      "label": "Steps to reproduce",
      "required": true,
      "description": ""
    },
    {
      "id": "sr_product",
      "type": "text",
      "label": "Product and version",
      "required": true,
      "description": ""
    },
    {
      "id": "sr_platform",
      "type": "select",
      "label": "Platform",
      "required": true,
      "description": "",
      "options": [
        {
          "label": "Windows",
          "value": "windows"
        },
        {
          "label": "macOS",
          "value": "macos"
        },
        {
          "label": "Linux",
          "value": "linux"
        },
        {
          "label": "iOS",
          "value": "ios"
        },
        {
          "label": "Android",
          "value": "android"
        },
        {
          "label": "Web browser only",
          "value": "web_browser_only"
        }
      ]
    },
    {
      "id": "sr_browser",
      "type": "text",
      "label": "Browser and version",
      "required": false,
      "description": ""
    },
    {
      "id": "sr_first_seen",
      "type": "datepicker",
      "label": "When you first saw it",
      "required": false,
      "description": ""
    },
    {
      "id": "sr_screens",
      "type": "fileupload",
      "label": "Screenshots or log files",
      "required": false,
      "description": "The error itself, and the screen just before it. Attach a log if you have one.",
      "max_files": 5
    },
    {
      "id": "sr_name",
      "type": "text",
      "label": "Your name",
      "required": true,
      "description": ""
    },
    {
      "id": "sr_email",
      "type": "email",
      "label": "Email for the reply",
      "required": true,
      "description": ""
    }
  ],
  "structure": [
    {
      "id": "sr_h1",
      "type": "heading",
      "label": "",
      "config": {
        "required": false,
        "placeholder": "",
        "description": ""
      },
      "meta": {
        "text": "The problem",
        "level": 2,
        "alignment": "left",
        "color": "#000",
        "font_size": 0,
        "font_weight": "700",
        "margin_top": 24,
        "margin_bottom": 8
      }
    },
    {
      "id": "sr_subject",
      "type": "text",
      "label": "One line summary",
      "config": {
        "required": true,
        "placeholder": "e.g. Export fails on files over 40 pages",
        "description": ""
      },
      "meta": {
        "minlength": 0,
        "maxlength": 90
      }
    },
    {
      "id": "sr_impact",
      "type": "select",
      "label": "Impact",
      "config": {
        "required": true,
        "placeholder": "",
        "description": ""
      },
      "meta": {
        "options": [
          {
            "label": "Cannot work at all",
            "value": "cannot_work_at_all"
          },
          {
            "label": "A workaround exists but it is painful",
            "value": "a_workaround_exists_but_it_is_painful"
          },
          {
            "label": "Minor annoyance",
            "value": "minor_annoyance"
          },
          {
            "label": "A question, nothing is broken",
            "value": "a_question_nothing_is_broken"
          }
        ]
      }
    },
    {
      "id": "sr_steps",
      "type": "textarea",
      "label": "Steps to reproduce",
      "config": {
        "required": true,
        "placeholder": "Numbered, from a clean start. Include what you expected and what happened instead.",
        "description": ""
      },
      "meta": {
        "minlength": 25,
        "maxlength": 0,
        "rows": 5
      }
    },
    {
      "id": "sr_h2",
      "type": "heading",
      "label": "",
      "config": {
        "required": false,
        "placeholder": "",
        "description": ""
      },
      "meta": {
        "text": "Your environment",
        "level": 2,
        "alignment": "left",
        "color": "#000",
        "font_size": 0,
        "font_weight": "700",
        "margin_top": 24,
        "margin_bottom": 8
      }
    },
    {
      "id": "sr_product",
      "type": "text",
      "label": "Product and version",
      "config": {
        "required": true,
        "placeholder": "Found under Help, then About",
        "description": ""
      },
      "meta": {
        "minlength": 0,
        "maxlength": 0
      }
    },
    {
      "id": "sr_platform",
      "type": "select",
      "label": "Platform",
      "config": {
        "required": true,
        "placeholder": "",
        "description": ""
      },
      "meta": {
        "options": [
          {
            "label": "Windows",
            "value": "windows"
          },
          {
            "label": "macOS",
            "value": "macos"
          },
          {
            "label": "Linux",
            "value": "linux"
          },
          {
            "label": "iOS",
            "value": "ios"
          },
          {
            "label": "Android",
            "value": "android"
          },
          {
            "label": "Web browser only",
            "value": "web_browser_only"
          }
        ]
      }
    },
    {
      "id": "sr_browser",
      "type": "text",
      "label": "Browser and version",
      "config": {
        "required": false,
        "placeholder": "Leave blank if this is not a browser problem",
        "description": ""
      },
      "meta": {
        "minlength": 0,
        "maxlength": 0
      }
    },
    {
      "id": "sr_first_seen",
      "type": "datepicker",
      "label": "When you first saw it",
      "config": {
        "required": false,
        "placeholder": "",
        "description": ""
      },
      "meta": {
        "min": "",
        "max": ""
      }
    },
    {
      "id": "sr_h3",
      "type": "heading",
      "label": "",
      "config": {
        "required": false,
        "placeholder": "",
        "description": ""
      },
      "meta": {
        "text": "Evidence",
        "level": 2,
        "alignment": "left",
        "color": "#000",
        "font_size": 0,
        "font_weight": "700",
        "margin_top": 24,
        "margin_bottom": 8
      }
    },
    {
      "id": "sr_screens",
      "type": "fileupload",
      "label": "Screenshots or log files",
      "config": {
        "required": false,
        "placeholder": "",
        "description": "The error itself, and the screen just before it. Attach a log if you have one."
      },
      "meta": {
        "allowed_types": "png, jpg, pdf, txt, log",
        "camera": false,
        "max_files": 5,
        "min_files": 0
      }
    },
    {
      "id": "sr_h4",
      "type": "heading",
      "label": "",
      "config": {
        "required": false,
        "placeholder": "",
        "description": ""
      },
      "meta": {
        "text": "Contact",
        "level": 2,
        "alignment": "left",
        "color": "#000",
        "font_size": 0,
        "font_weight": "700",
        "margin_top": 24,
        "margin_bottom": 8
      }
    },
    {
      "id": "sr_name",
      "type": "text",
      "label": "Your name",
      "config": {
        "required": true,
        "placeholder": "",
        "description": ""
      },
      "meta": {
        "minlength": 0,
        "maxlength": 0
      }
    },
    {
      "id": "sr_email",
      "type": "email",
      "label": "Email for the reply",
      "config": {
        "required": true,
        "placeholder": "e.g., name@example.com",
        "description": ""
      },
      "meta": {}
    }
  ],
  "example_submission": {
    "values": {
      "sr_subject": "A short factual answer.",
      "sr_impact": "cannot_work_at_all",
      "sr_steps": "A short factual answer.",
      "sr_product": "Found under Help, then About",
      "sr_platform": "windows"
    },
    "idempotency_key": "support-request-2026-09-09-001",
    "agent": {
      "name": "your-agent"
    }
  },
  "notes": [
    "Key every value by the field id, never by the label. A label may be renamed.",
    "A fileupload value is {\"base64\", \"filename\", \"content_type\"} or {\"url\"}, capped at 3 MB.",
    "A select value must match one of the option values exactly.",
    "A checkbox-simple value is one of yes, no, or na.",
    "A datepicker value is YYYY-MM-DD.",
    "Send an idempotency_key so a retry cannot store the same submission twice."
  ]
}