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

Form with no data still wants to save PDF

Community Expert ,
Aug 15, 2017 Aug 15, 2017

I have a PDF form that contains javascripts, custom calculations, and Document Javascripts. If I open PDF, then close the file without entering any data into forms, Acrobat/Reader is prompting me to save PDF. This is not an issue.

But, in the process of duplicating the original, I made some minor changes, and then saved PDF. Newly saved PDF does not behave in the same manner. I can open dup PDF, close the file without entering any data into forms, and now I am not prompted to save. This would be the preferred manner.

Problem is, I can't replicate this behavior. What do I need to look into so PDFs will not prompt a save when no data is entered into forms? TIA

TOPICS
PDF forms
765
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
1 ACCEPTED SOLUTION
Community Expert ,
Aug 17, 2017 Aug 17, 2017

I discovered the problem. The PDF contains a document javascript to enter today's date when opened. When editing the form, if I did not clear the form before saving the duplicate, the date was captured as a static value. Then, if I opened and closed without entering data in form, Acrobat did not prompt a save. The date script when running correctly, will always prompt a save of the PDF.

View solution in original post

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 ,
Aug 17, 2017 Aug 17, 2017

I discovered the problem. The PDF contains a document javascript to enter today's date when opened. When editing the form, if I did not clear the form before saving the duplicate, the date was captured as a static value. Then, if I opened and closed without entering data in form, Acrobat did not prompt a save. The date script when running correctly, will always prompt a save of the PDF.

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 ,
Aug 17, 2017 Aug 17, 2017
LATEST

At the end of the date script add:

this.dirty = false;

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