Document download - smbc-digital/form-builder GitHub Wiki
Overview
Document download allows the user of the form to download a document containing their previous answers. This can be created on any page.
Important:
- Document download will not work on the first page
- Document download does not have structure tests as the file name is dynamic and this is mistaken as a change to the component
DSL properties
Property | Type | Required | Default Value | Description |
---|---|---|---|---|
QuestionId | string | ✔️ | ❌ | Unique question id allowed characters are [a-zA-Z] only |
Text | string | ❌ | Download {DocumentType} document | Text describing the action the button performs |
DocumentType | string | ✔️ | ❌ | determines the type of document created |
Document download examples
DS Json for document download
{
"Type":"DocumentDownload",
"Properties":{
"QuestionId": "docDownload",
"DocumentType": "Txt"
}
},