Success page - smbc-digital/form-builder GitHub Wiki

Related

The success page is a required page within the form DSL. It is based off the Govuk and success pattern developed by the UX team. For use within formbuilder a page must be created with the page slug 'success'. Your reference number will appear automatically if the service being called returns a reference number.

Property Type Required Default Value Description
Title string ✔️ Page title
BannerTitle string ✔️ Title which appears within the smbc-panel
LeadingParagraph string ✔️ Paragraph text which appears within the smbc-panel
PageSlug string ✔️ The page slug is required to be 'success'
Elements object[] Set of additonal elements which can be configured to appear below the smbc-panel

Success page example

image

    {
      "Title": "Thank you for submitting your views on fruit",
      "BannerTitle": "Application complete",
      "LeadingParagraph": "Some additional infomation",
      "PageSlug": "success",
      "Elements": [
        {
          "Type": "h2",
          "Properties": {
            "Text": "What happens next"
          }
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "We will contact you shortly to confirm if your request has been accepted. Please note - no parking dispensations are granted without confirmation."
          }
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "<a href='https://www.stockport.gov.uk/' class='button-primary'>Go to the homepage</a>"
          }
        }
      ]
    }
Key Property
1 Title
2 LeadingParagraph
3 Elements

success