Answered
I have created a form in Designer 7.1 using addInstance for additional lines. The addInstance allows the user to add different US states to their setup. What I want is to check to make sure that the states are not duplicated. Is this possible and if so how is it accomplished?
One method would be to attach a script to the change event of the dropdown list (the list that has the states in it). The Script would loop through all of the subforms and compare the selection to the value of all the other state fields. If the selected state is found, then it would reject the users selection.
Use the resolveNodes() function to get a list of the dropdown fields you need to grab the info from.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script