How can I use an icon or image to download a file?
I have a form where users download files by pressing the download file button. I want to replace this form control with a custom image while keeping the same functionality. Is this possible?
Comments
-
Hello,
One way this can be done is using a Sub Dialog Image Button to replace the previous download file button. Images can be set to the sub dialog button and will kick off a flow in the form when selected. In this sub dialog flow, you can load the file into a URL to download using a Load File from File Data and End Form Session Step.
Steps:
1)Add Sub Dialog Image Button to form.
2)Set Custom image under Properties > Data > Image
3)Create Sub Dialog Flow under Properties > Input Data.
a)Create input with FileData type in sub dialog flow.
b) Insert Load From File Data step and input data from previous step.
c)Insert End Form Session step and set Behavior to ‘Open URL’
d)Input LoadFromFileData_Output.FileURL into the URL input.
4)The sub dialog button will now download the file when selected.
Please Note: The examples attached were developed to be instructional, and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact: services@decisions.com
Howdy, Stranger!
Categories
- 4.2K All Categories
- 68 General
- 11 Training
- 203 Installation / Setup
- 1.1K Flows
- 108 Rules
- 262 Administration
- 212 Portal
- 494 General Q & A
- 698 Forms
- 334 Reports
- 3 Designer Extensions
- 47 Example Flows
- 53 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 80 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 92 Lunch And Learn Questions