Answered
I have an Acrobat Form with a button that executes a series of actions. The first action is an alert with an explanation of everything the button will do. At the end of the alert, I have "Do you want to continue?" At the moment, regardless of whether "YES" or "NO" is clicked, all of the actions still execute. How do I tell it not to do the remaining actions if the user selects "NO"? (I am a very beginner javascript user. Please be gentle and very simple. Thank you.)
I am using Windows, Acrobat Pro 9.4.0
function MyProcess() {
app.alert("Hello World!", 3, 0);
return true;
}
var cResponse = app.alert({cMsg: "An alert will appear\continue?", nIcon: 2, nType: 2, cTitle: "Explanation"});
if (cResponse == 4) {
if(app.alert("Confirm continue:", 2, 3) == 4) {
MyProcess();
} else {
// do nothing
} // end continue loop
} // end response is yes
George Kaiser