I'm very new to LiveCycle and FormCalc and I was wondering if anyone could help me with the following problem?
I trying to design a numeric field that is validated based on a selection of a list item from a drop down list in another form.
For example, if I select List Item 1 from the drop-down list field, the numeric field's total would have to be less than 1000.
Is it possible to use FormCalc to do that or would I have to use JavaScript?
Either way some guidance on what to enter or how to proceed would be much appreciated.
But for the conditional you just need to be able to write an "if" statement. For example, if the dropdown is named "MyCombo" this the code would look something like this.
if(MyCombo == "Option1") then
$ < 1000
else if (MyCombo == "Option2") then
$ < 2000
endif
A validation event uses the last value evaluated in the script.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script