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

Master copy being saved over after signing

Guest
Oct 03, 2016 Oct 03, 2016

I have a master copy of a form my clients are to fill out and then sign, but when it is signed the form is saved over and then I have no master file. If I make it read only it fails to save, I have tried to give it a path to save as so it wont write over my master file but the best outcome is if the master file is not read only and upon signing it will save over the master AND make a save file where I want it to. I have a signature pad and I used the following java script when the form is signed:

lcbSaveAs(this, "/X/000 - Onboarding/" + this.getField("FirstName").valueAsString + " " +this.getField("LastName").valueAsString + " Application.pdf");

I also have the trusted function in the folder level javascript:

var lcbSaveAs = app.trustedFunction( function (vDoc, vPath) {

  app.beginPriv();

  vDoc.saveAs({cPath: vPath});

  app.endPriv();

});

TOPICS
Acrobat SDK and JavaScript , Windows
424
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

correct answers 1 Correct answer

Deleted User
Oct 03, 2016 Oct 03, 2016

Not a true fix, but I did a work around, I have a submit button with the same javascript running above so it saves to my desired location. Then I run "reset form" Followed by another javascript almost identical to the one above but instead I changed the save location to where I keep my master documents with the original name.

Not the cleanest solution but it works, plus I have backups if anything ever happens to my "master" forms

Translate
Guest
Oct 03, 2016 Oct 03, 2016
LATEST

Not a true fix, but I did a work around, I have a submit button with the same javascript running above so it saves to my desired location. Then I run "reset form" Followed by another javascript almost identical to the one above but instead I changed the save location to where I keep my master documents with the original name.

Not the cleanest solution but it works, plus I have backups if anything ever happens to my "master" forms

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