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"?
Without going too far into your script, I can see that you need to change the "then" statements. You should use == to mean "is equal to" and the = to mean "set it to". So use: then (Cell2=459.00) and
then (Cell2=659.00) . There may be other changes needed. As I said, I just noticed this first. So try it and see if that gets it to work.