Answered
I am trying to learn how to stop a user from selecting more than one of 3 drop down lists. The form has 3 dropdowns and I have the following in the cell where I want the selection: F.P1.Fee_1[0]+F.P1.Fee_1[1]+F.P1.Fee_1[2] but if the user chooses more that one of them the answer is of course wrong. Can someone help me with a Formcal expression to allow only one of the three.
Thank you
Earl
If you want to make the list fields mutually exclusive then the first thing you need to do is to have some way to distinguish a selected value from a non-selected value. For example each list could have an entry labeled "None" to represnt the "non-selected" state. Next you have to decide how you want the lists to behave. Should a selection in one list block usage of the other lists or should it reset the other lists to the "non-selected" state?
One you have these issues resolved a specific solution will be much easier to come up with.
As for setting a result field. If you want the result to come from a single list then a calculation is probably not the best way to go. Instead, set the field value directly from the selection of the list using the "change" event on each list field.
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