Hello!
To the point: I am trying to create a from wherein the user can make a selection form a drop box of various categories of cabins (I.e. "4B Inside"), and, depending on what the user selects, an output of a certain $ amount will be placed in another field. I have scripted, into the field where I would like the result, the following (no subforms are used, the language is formcalc, so everything should be on the same heriarchal level, language is formcalc):
If (DropDownList1==4) then (Cell2==459.00) elseif (DropDownList1==6) then (Cell2==659.00) endif
This string does not produce an error when tested in reader or within Livecycle, however, it ALWAYS returns the result "0" in Cell2, irrespective of which I choose (4 or 6).
Additionally, if I attempt to refer to DropDownList1 as "4B Inside" in the string, and name the choice in DropDownList1 thusly, I receive a script error where text, as opposed to numbers, begin. Is this function not possible in formcalc, or is it referenced as something other than "If"?
you should use "rawValue" to get the current value of dropdownList1.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs