I would like to add the option to my Reset button for the user to have a dialog box popup giving him the option to Cancel the reset action or cllick OK to reset the form. It would also have a message that says "are you sure you want to remove all data from this form?"
I have been able to find a script that uses an app.response box to do this, but I don't want the box with the field that app.response gives. What other way could I do this?
This is the script I have now:
var cResponse = app.response({
cQuestion: "You are about to clear all data from this form. Are you sure you want to do this?"
});
if (cResponse == null){ //if Cancel is selected
app.alert("Data will not be cleared.");
cResponse = 0;
}
else
this.resetForm();
You could just use an app.alert dialog instead- it does not inlcude a text field entry but can include your text asking if the user really does wnat to reset the entire form.
Hope this helps,
Dimitri
www.pdfscripting.com
Dimitri Munkirs
WindJack Solutions
pdfscripting.com