Exit Button script won't work in Adobe Reader 8

Avatar

Avatar

kumari1112

Avatar

kumari1112

kumari1112

24-09-2010

Hello,

I have this code on Exit button for pdf form:

app.execMenuItem("Close");

Or

to give warning before Exit: Have a second RealExit Button hidden to execute the code

var answer = xfa.host.messageBox("Are you sure you want to Exit?","Warning Message",2,1);

if(answer==1){

RealExit.execEvent('click');

}

I tried both the code one at a time but no luck in Adobe Acrobat Version 8, works like a charm in Adobe Acrobat 9

I would like the user to click the Exit button if they choose to exit. However it doesn't work in Adobe Acrobat 8 but works in 9 version. Is there a work around? Any suggestions???

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

Varma_LC

Avatar

Varma_LC

Varma_LC

24-09-2010

This answer may not be a big help but sure will give you some level of understanding....

Check the URL>>>http://kb2.adobe.com/cps/402/kb402673.html

Check the section "PDF Forms-related issues:" starting mid page.....

Not all releases/versions are good. Some releases tend to have some bugs...the version you tested could be one of them. Adobe always recommends to be on the latest version. If client still on older version that is client's problem especially there should not be any restrictions on upgrading to Latest version when the software is free!