Document upload - smbc-digital/form-builder GitHub Wiki

Refer to Stockport Design System for styling information and reference images

Document Upload is a link (styled as a Primary button) that can be used on Success pages. It will automatically generate a url consisting of the host, form name, "document-upload" and with the Base64 encoded Case Reference as a parameter eg. http://forms.stockport.gov.uk/v2/file-upload/document-upload?caseReference=encodedReference

Warning

NOTE: You may not need any properties for this, but you must still put an empty Property object in the JSON.

DSL properties

Property Type Required Default Value Description
Text string ❌ Upload your documents The text required on the 'button'

Document upload examples

DS Json for document upload:

        {
          "Type": "documentUpload",
          "Properties": {
            "Text": "Button text"
          }
        }

Example of DS success page with document upload

            "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."
          }
        },
        {
          "Type": "h2",
          "Properties": {
            "Text": "Supporting evidence"
          }
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "Based on the questions you answered, you must provide us with the evidence below so that we can process your application."
          }
        },
        {
          "Type": "h2",
          "Properties": {
            "Text": "#####"
          }
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "We need to see evidence for:"
          }
        },
        {
          "Type": "ul",
          "Properties": {
            "ListItems": [
              "test test"
            ]
          }
        },
        {
          "Type": "h2",
          "Properties": {
            "Text": "Uploading your evidence"
          }
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "You must upload your documents withing <strong>14 days</strong> otherwise you will need to reapply. The sooner that we receive your documents, the quicker we can process your application."
          }
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "You'll also receive an email with this information and a link to upload your documents."
          }
        },
        {
          "Type": "documentUpload",
          "Properties": {}
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "If you're unable to upload your documents online, you can take them to one of our local advice centres or send them to the address below quoting your reference number:"
          }
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "Local Taxation<br>Stockport Metropolitan Borough Council<br>Town Hall<br>Stockport<br>SK1 3XE"
          }
        },
        {
          "Type": "p",
          "Properties": {
            "Text": "You can send photocopies or the original documents. If you send the original documents we'll return them to you."
          }
        }
      ]

⚠️ **GitHub.com Fallback** ⚠️