Expand my Community achievements bar.

SOLVED

Don't ask for save when close the file.

Avatar

Level 2

Maybe you all meet a situation that, if you edit the pdf form with adobe reader or acrobat and close it, it will jump out a window and ask "do you want to save the change before closing?".

Does anybody know how to cancle this asking? Because users can't save the file directly and I added a function to export to xml file, it dosen't need to save anymore.

Could you share me how to advoid asking for save when close the pdf form?

Thank you all!!!

Ellie

1 Accepted Solution

Avatar

Correct answer by
Level 10

I've fixed the broken link :-)

Adobe Acrobat.com

View solution in original post

7 Replies

Avatar

Level 2

Hi,

I am sorry I can't open the link.

Could you please help me to paste them? Thanks a lot!

If anybody can open the link, please help me to paste the main content, Thank you very much!

Ellie

Avatar

Former Community Member


var MyDoc = event.target;

MyDoc.dirty = false;

Avatar

Correct answer by
Level 10

I've fixed the broken link :-)

Adobe Acrobat.com

Avatar

Level 2

Hi Radzmar,

Thank you for sharing! But I tried to edit it with Acrobat, it still jumps out a window and ask if I want to save.

Best regards!

Ellie

Avatar

Level 10

Hi,

the sample is for JavaScript for XFA forms which it a bit different to the one you use in Acrobat.

XFA:


event.target.dirty = false;


AcroForms:


this.dirty = false;


Avatar

Level 2

Hi Radzmar,

Thank you very much! It solves my problems!

Wish you a woderful day!

Best regards!

Ellie