Skip to main content
Participant
August 17, 2017
Question

Trying to learn Javascript actions

  • August 17, 2017
  • 1 reply
  • 216 views

I am new to actions, though I do know how to write javascript. I want an action to perform on save. I have a form and if I go to "More" on the right side bar and the select "Document Action" I get a box that lists the events. One says "Document Did Save". In there I add a simple alert("my message"), and they save the document the alert does not execute. I want to write something more than this but I can't until I can get the execution figure out.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 17, 2017

You might know JS for web-sites, but that's not the same as JS for PDF files... The core syntax is the same, but the objects, properties and methods are not. There's no alert() method in Acrobat. There is app.alert(), though.

You'll find it all documented here: Adobe - Acrobat Developer Center | Adobe Developer Connection