Answered
Hello,
I have created "submit" and "reset" buttons for my Adobe Form in Acrobat 8. I just received a request to have a dialogue box or message pop up as soon as either one of these are clicked on.
The dialoge/message box would ask "Are you sure you would like to submit (or erase) your form?" and then give them an option to cancel or continue.
We would like this feature added in case someone changes his/her mind when submitting or resetting a form. Is this doable? If so, how can I go about creating such a feature?
Thanks in advance.
RESET Button
// display and get response - use the "?" Icon and "Yes/No/Cancel" return button
var cResponse = app.alert({cMsg: "All data will be cleared and all fields will be reset to BLANK.\n\nAre you sure you want to clear all the data?",
cTitle: "Reset Form",
nIcon: 2, nType: 1, });
if (cResponse == 1) {
this.resetForm();
}
SUBMIT BY EMAIL Button
var cResponse = app.alert ("Did you remember to sign the form?\n\nChoose YES to proceed or choose NO to go back and sign the form.",2,2);
if (cResponse ==4) {
var nResponse = app.alert("Don't forget to attach all pertinent receipts to the email.",3,0);
if (nResponse ==1); {
this.mailDoc(true);
}}