Copy link to clipboard
Copied
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?
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Please
This command does not work on Android systems
؟؟؟؟ 😞
Copy link to clipboard
Copied
Correct. Almost no scripts do.
Copy link to clipboard
Copied
One Question: My File.docy should locate in the same folder where the pdf form is?
Copy link to clipboard
Copied
The file needs to be attached to the PDF. Do you mean where you export it to? That's up to the user.
Copy link to clipboard
Copied
Thank you this did exactly what I wanted to do. This is great and is the answer to my and another posters question on how to open an embedded/attached file using a link. Great job!