{
  "version": "7.3",
  "screens": [
    {
      "id": "FEEDBACK",
      "title": "Service feedback",
      "terminal": true,
      "success": true,
      "data": {},
      "layout": {
        "type": "SingleColumnLayout",
        "children": [
          {
            "type": "Form",
            "name": "feedback",
            "children": [
              {
                "type": "TextHeading",
                "text": "Was it easy to get help?"
              },
              {
                "type": "RadioButtonsGroup",
                "name": "helpful",
                "label": "Choose one",
                "required": true,
                "data-source": [
                  {
                    "id": "yes",
                    "title": "Yes"
                  },
                  {
                    "id": "no",
                    "title": "No"
                  }
                ]
              },
              {
                "type": "TextArea",
                "name": "comment",
                "label": "What could improve?",
                "required": false,
                "max-length": 600
              },
              {
                "type": "Footer",
                "label": "Send feedback",
                "on-click-action": {
                  "name": "complete",
                  "payload": {
                    "helpful": "${form.helpful}",
                    "comment": "${form.comment}"
                  }
                }
              }
            ]
          }
        ]
      }
    }
  ]
}
