{
"version": "6.0",
"screens": [
{
"id": "TICKET_FORM",
"title": "Support Request",
"layout": {
"type": "SingleColumnLayout",
"children": [
{ "type": "TextHeading", "text": "How can we help?" },
{
"type": "TextBody",
"text": "Describe your issue and we'll get back to you as soon as possible."
},
{
"type": "Dropdown",
"name": "category",
"label": "Issue Category",
"required": true,
"data-source": [
{ "id": "billing", "title": "Billing & Payments" },
{ "id": "technical", "title": "Technical Issue" },
{ "id": "account", "title": "Account & Access" },
{ "id": "feature", "title": "Feature Request" },
{ "id": "other", "title": "Other" }
]
},
{
"type": "TextInput",
"name": "subject",
"label": "Subject",
"required": true,
"input-type": "text"
},
{
"type": "TextArea",
"name": "description",
"label": "Describe your issue",
"required": true
},
{
"type": "Dropdown",
"name": "priority",
"label": "Priority",
"required": true,
"data-source": [
{ "id": "low", "title": "Low — General question" },
{ "id": "medium", "title": "Medium — Affecting workflow" },
{ "id": "high", "title": "High — Service disrupted" },
{ "id": "urgent", "title": "Urgent — Complete outage" }
]
},
{
"type": "Footer",
"label": "Submit Ticket",
"on-click-action": {
"name": "complete",
"payload": {
"category": "${form.category}",
"subject": "${form.subject}",
"description": "${form.description}",
"priority": "${form.priority}"
}
}
}
]
},
"terminal": true,
"success": true,
"data": {}
}
]
}