Skip to main content
Santiman21
Known Participant
February 16, 2018
Question

Clickable Button to run an action/shortcut.

  • February 16, 2018
  • 2 replies
  • 735 views

What I want to do is create a form that is fillable from a Delimited text file. I already have all of that set up and working. I however want to make it simpler for my colleagues who aren't as savvy by allowing them to click a button embedded in the PDF that will automatically point to the delimited file and just launch the "import data from delimited text file" box so that they can just choose what they need. I am not great with writing javascript, does anyone have a basic idea if this is doable and what script would be needed to call the file?

Thanks in advance.

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
February 16, 2018

Yes, but what you are asking about is creating an Automation tool, not a form feature. As Try67 has already stated, this type of activity requires privilege.

You can read more about automation and data handling here:

Automating Acrobat can save you loads of time.

https://www.pdfscripting.com/public/ExcelAndAcrobat.cfm

The last tool listed on this page displays a popup menu of options from a CSV (comma separated), for auto-filling fields on a form, which sounds a lot like what you need.

Search Downloads

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
February 16, 2018

If you want to specify the file path in the script it has to run from a "privileged context", ie a .js file that's installed on the user's local machine.

Santiman21
Known Participant
February 16, 2018

Is there any alternative to this? we are at a university and I don’t think we have access to the folders where the .js file would have to be installed. (If you could confirm the folders I can check)

try67
Community Expert
Community Expert
February 16, 2018

Not without a lot of effort. You can use a button to open the file selection dialog, and then the row selection dialog, though.