Skip to main content
C Swinford
Participant
February 9, 2018
Answered

How do I create a link/button to open non-PDF file attachments?

  • February 9, 2018
  • 1 reply
  • 2266 views

I have a PDF with file attachments of several different file types. The attachments need to open from a button or link click. This is easily done with attached PDFs, but I also need to open XLS, DOCX, and PPT files. There is not an obvious way to make a button or link do this. Is there a JavaScript action that could achieve what I want?

This topic has been closed for replies.
Correct answer try67

You can do it using this code:

this.exportDataObject({cName: "My File.docx", nLaunch: 2});

The first parameter is the name of the attached file that you want to open, of course.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 9, 2018

You can do it using this code:

this.exportDataObject({cName: "My File.docx", nLaunch: 2});

The first parameter is the name of the attached file that you want to open, of course.

Participant
September 30, 2020

Please
This command does not work on Android systems
؟؟؟؟ 😞

try67
Community Expert
Community Expert
October 1, 2020

Correct. Almost no scripts do.