Skip to main content
October 22, 2021
Question

Download Document Automatically

  • October 22, 2021
  • 1 reply
  • 0 views

Hi Community,

Just wondering if there is a way to download a document automatically upon loading the user interface. Please share your thoughts.

Thanks,

Arun

1 reply

mikes0011
Brainy
October 22, 2021

a!documentDownloadLink() will always require a user to click on a link.  There may be a custom / plug-in based component that acts closer to what you describe.  For certain document types (basically any unsupported extensions) attempting to load that document into a!documentViewerField() will cause the browser to auto-initate a download apparently, though I wouldn't count on this behavior as any sort of workaround.

The Expression Guru