Expand my Community achievements bar.

Exit Button script won't work in Adobe Reader 8

Avatar

Level 2

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

1 Reply

Avatar

Level 6

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!