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

(un)targeting fields

Registered: Jun 9 2007
Posts: 5

Hi experts,
I have a neat little problem. I would like to clear certain form fields when the form is reopened without a data file. If a dataset (xfdf) is associated, then the form fields will need to display the data. That much is working with a function that calls the resetForm method. I know how to target subtrees to reset, but is there a way I can target the button set to NOT reset on open?
The reason I need to accomplish this is because the buttons were created in InDesign and when the entire form is reset, ie., this.resetForm(); the buttons are still present, but no longer visible. This is a frustrating behavior. Is there a way to avoid this problem yet still use InDesign buttons? Thank you in advance for providing your resource.

My Product Information:
Acrobat Pro 8, Macintosh
Registered: Jul 9 2006
Posts: 858
I do not have a good answer for this post but I do have info on a new book coming out in August 2007. You can pre-order at

Creating Dynamic Forms with Adobe LiveCycle Designer (Paperback)
by J. P. Terry (Author)
List Price: $50.00

Language: English
ISBN-10: 0321509870
ISBN-13: 978-0321509871

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

Registered: Jun 9 2007
Posts: 5
Geez... what a lousy reply. I looked at some of your recent so called answers and found the exact response there too. Most people at this site know about the book your plugging, but that doesn't help address problems today.

Also, the problem really isn't that tough. If anyone's curious, I simply used a naming convention like FormName.Section.Field.descripton for all fields except for buttons. I just thought maybe there would be a more elegant way of targeting fields to not be affected by the script and maybe some insight as to why I have problems with inDesign buttons being cleared.

If you can't answer these questions, please pass them to your colleagues who can.