Skip to main content
C Swinford
Participant
Feb 9, 2018 5:08 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Feb 9, 2018 5:13 PM UTC

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.

6 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Feb 9, 2018 5:13 PM UTC

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.

Translate
Participant
Sep 30, 2020 7:44 PM UTC

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

Translate
try67
Community Expert
Community Expert
Oct 1, 2020 8:35 AM UTC

Correct. Almost no scripts do.

Translate