I'm trying to make a shopping list. One page one i have fields text1-text50. On the other pages i have grocerie items. Corn, beef, cheese, cereal, etc. when one of the grocerie checkboxes is clicked i want the field text1 to populate no matter which check box is checked. When another checkbox is clicked i want it to automaticaly fill the field Text2. People will be checking the checkboxes in a random order and not always using all 50 text boxes. But i want the text boxes to fill in order. Any help? i don't know much about scripting but i know how to use them. I am using the acrobat form tools with version 7 pro.
Dave
The general strategy is to create a document level function that keeps the count and fills in the text fields, so all the functionality and state data are in one place. This function is then called from the Mouse Up event of each checkbox.
Of course the big problem is how you handle the user unchecking a check box. This could require a much more complex strategy for an AcroForm. It might be easier to use a dynamic LiveCycle form. Create a new next text field everytime a checkbox is clicked, then delete the text field if the checkbox is unclicked.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script