Skip to main content
C Swinford
Participant
February 9, 2018
Répondu

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?

Ce sujet a été fermé aux réponses.
Meilleure réponse par 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.

6 commentaires

try67
Community Expert
try67Community ExpertRéponse
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.