Skip to main content
New Participant
March 2, 2023
Answered

Adobe Acrobat javascript mouse up even for signature fill & sign

  • March 2, 2023
  • 1 reply
  • 3757 views

I created a form in acrobat for work, and what I am trying to do is a document level javascript, that when you click in the signature box of the form it opens the fill& sign option, so that a person can sign the form. I am needing to avoid the digital signature way of doing it because the company has 60,000 employees, and it is impractical to make them all create a digital signature id etc.

So basically, I need help writing a script that on mouse up event, it will open the signature portion of the fill & sign section of adobe. This form is just so that when a person is qualified or being requalified on a machine, it gets filled out and then sent to their personel file. Does that make any sense?

I tried to go to the event tab in adobe in the properties section of the form field, and there is no option to have adobe open what I need on the mouse up even.

This topic has been closed for replies.
Correct answer Thom Parker

The way to do this is to run the menu item for fill & sign, which is "OpenApp_FillSignApp".

 

Here's the line of code

app.execMenuItem("OpenApp_FillSignApp");

 

However, this menu item is blocked, along with many others for security reasons.

The code will only work under special circumstances.

1. Run from a Privileged context.

2. If the menu item is white listed on the particular computer.

 

 

1 reply

Thom Parker
Thom ParkerCorrect answer
Community Expert
March 3, 2023

The way to do this is to run the menu item for fill & sign, which is "OpenApp_FillSignApp".

 

Here's the line of code

app.execMenuItem("OpenApp_FillSignApp");

 

However, this menu item is blocked, along with many others for security reasons.

The code will only work under special circumstances.

1. Run from a Privileged context.

2. If the menu item is white listed on the particular computer.

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
New Participant
March 3, 2023

Thank you so much for that.  These forms are on our internal server at work.  It just so we can eliminate so much paper waste is all.  I will give that a try, and see how it works.  I have to execute it when user clicks in the signature block.  With us having so many employees, making digital certificates for each of them isnt a plausible option.  If I have any more questions, mind of I respond to this message back to you?

Thom Parker
Community Expert
March 3, 2023

Of course. Post away!!

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often