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

Problem with reset buttons

nerdsevencom
Registered: May 27 2010
Posts: 5
Answered

Hi everyone,

I have a very annoying problem that I'm hoping to get some help with. I have an order form for customers who can specify the t-shirt sizes they want for each shirt design that we offer. At the end of each of these rows is a reset button that clears the input for that shirt style only.

Its a classic reset button where the specific fields that should clear are defined in the Actions settings.

The problem is that any time we add a new style of shirt to the order form Acrobat automatically adds those new size fields as selected for every other styles' reset button. We have to go through each t-shirt style and deactivate the new fields and it takes about an hour!

Is there any way from preventing this? I have named each reset button uniquely, but this didn't fix anything. :\

www.nerdseven.com - Gadgets & Gizmos
www.tqualizer.biz - Home of the Light Up T-Qualizer T-Shirt

My Product Information:
Acrobat Standard 9.3.1, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
I would use a custom JavaScript for each row. You can use the 'this.resetForm(aFields)' to clear the optional array of field names.
var fields = new Array();fields[0] = "P1.OrderForm.Description";fields[1] = "P1.OrderForm.Qty";this.resetForm(fields);

The same fields can be reset using only one line of code:
this.resetForm(["P1.OrderForm.Description","P1.OrderForm.Qty"]);
The scripts will not automatically update as new fields are added, so you would only need to add the script for the row.

George Kaiser

nerdsevencom
Registered: May 27 2010
Posts: 5
That's beautiful. Much better. Thank you!

www.nerdseven.com - Gadgets & Gizmos
www.tqualizer.biz - Home of the Light Up T-Qualizer T-Shirt