i have three elements:
a (drop down list) with three choices: one, two, three
a (text field) with this javascript code in the calculate event:
if(DropDownList1.rawValue == "one")
{
TextField1.rawValue = "ONE";
if(TextField1.rawValue == "ONE")
{
NumericField1.rawValue = 1;
}
}
and a (numeric field).....
my question is... when i make a choice from the drop down list and choose "one", this should change the text field value to "ONE" and the numeric field to "1".... but instead i get "1" on both the textField and the numericField... why?
I wasn't able to reproduce your problem, but I would use another script.
Put this one into the change:event of your dropdown box.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs