Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Force Adobe to close...

Avatar

Former Community Member
I posted on here a few weeks ago about how to get Reader to be used for opening a form, and the pop-up message with a notification works perfect. (Thank you for the script)

But, once you click the "ok" button in the pop-up message, Adobe Pro stays open and continues to open the form file through Adobe Pro. Is there a way to force Adobe to close and not continue opening the file once the message telling to use Reader has been read? If so what is the Javascript for that?



Here is the script that I inserted for the message box:



if (xfa.host.appType == "Reader") {

if (xfa.host.version < 7) xfa.host.messageBox("Currently the application version your are using is "+xfa.host.version+".\nAn application version of Adobe Reader 7.0 or higher is required this form to function properly.")



}else {

xfa.host.messageBox("Please open this doc in Reader");

}



So again, is there a way to force Adobe to quit after the "OK" has been clicked?



Thanks for everything
0 Replies