Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Java Will Save action

New Here ,
Feb 13, 2019 Feb 13, 2019

     Hello,

I have created a very long and detailed Form Filler PDF using Adobe Acrobat Standard DC. I have put a lot of time into making some of the fields required and creating a custom submit buttons. that emails the form to our executive who has to sign off on the form before the document can be passed along to start processing the information on the form. Once the Submit (email) button receives a mouse up event the submit to server button appears which is the only way I would like for the form to be "saved". This allows us to make sure that no work order slips past the boss without his approval, long story but necessary.

So now to the question, is there a way to add a Will Save Action -  this.resetForm(); in the current version of Adobe that I have? If the answer is no is there a way I could sign up for a trial version of the Tool or program that I would need so that I can find out if I get my desired result before having to pay for it?

Our office has purchased 8 licenses for Adobe Acrobat Standard DC, so I am not trying to get out of paying for the service I would just like to make sure I can achieve the desired goal before locking into a subscription.

Thank you for your help!

TOPICS
Acrobat SDK and JavaScript
626
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 13, 2019 Feb 13, 2019

Yes, it is possible. Run this code from the JS Console to do it:

this.setAction("WillSave", "this.resetForm();");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 13, 2019 Feb 13, 2019

how do I get to the JS Console?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 13, 2019 Feb 13, 2019

Ctrl+J.

And I agree with TSN, this is not a good idea...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 13, 2019 Feb 13, 2019

Worth noting that you may really upset people who need to save half-done work e.g. to take a phone call or break, or reboot a problem computer, and who find that you destroy their half done work. We see this all the time, it reduces some users to helpless frustration.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 13, 2019 Feb 13, 2019

Duly noted, I do agree the learning curve of the process will probably produce some curse words. However, in order to mandate the required fields being filled out and executive approval received before production begins. This was the most passive-aggressive form of micromanaging I could come up with.

so at what screen do I have to hit Ctrl+J? Do I need to have a specific tool to do this?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 13, 2019 Feb 13, 2019

Just the main screen. No special tools required.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 13, 2019 Feb 13, 2019

apparently, that only works if use single-key accelerators to access tools checkbox is marked in General preferences. That was fun to find.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 13, 2019 Feb 13, 2019
LATEST

That should not be the case...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines