These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Alert for a "clear form" button

techwriter
Registered: Dec 19 2007
Posts: 20

I'd like to include a "clear" button in a timesheet, but since there is a lot of information being typed into the form, there has to be an alert confirming whether or not they really want to clear, just in case someone accidently presses the button. Is this possible? I'm working in Acrobat 6 Pro.

techwriter
Registered: Dec 19 2007
Posts: 20
I figured it out. I found some code on the internet and rewrote it to suit my need.

var answer = app.alert("Are you sure you want to clear this form?", 2, 2);

if(answer==4)this.resetForm();