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?

New Participant
March 16, 2023

Of course. Post away!!

 


Morning Thom,

 

I tried what you mentioned, and either I am doing something wrong, or I am not sure.  All I am wanting my form to do, is when we click in the signature box, is have adobe open up the fill and sign option, so that the employee can just sign their name and it will fill it in, without having to make a digital certificate or any of that mess.

Where I work, all our forms and things are saved on our internal servers, and we pull them as needed.  So this qualification form would be listed on our server, user would click on the form, it opens in Reader, they need to be able to click in the signature field after having filled out the form, and the fill and sign option should come up.  Once that is done, they can either submit the form, (which would be emailed to appropreiate parties) or print the form itself.  When I put the code in you showed me, it doesnt open that fill and sign option, it gives me an error.  So I am betting either I am doing somethingn wrong, or it wont work in my environment.  Any help would be greatly appreciated.

 

Man sure wish we used php or something, it would be so much easier.