Forums

This topic is locked

Dynamic ComboBoxes?

Posted 03 Nov 2005 20:34:44
1
has voted
03 Nov 2005 20:34:44 Dan Kelley posted:
Ok I have searched and seached and am sure the answer is out there somewhere, but I am just not getting it.
I have two combo box flash components, and I want the information in the second one to be different based on what the user selects in the first one.
Here is my code... can someone please point me in the right direction?

This Code is in the first combobox called "Prod1Reason" the second combo is called "Prod1Resolution"
Thanks for your help, I am just learning and will help out as soon as I can.

on(change){
if(Prod1Reason.value=="damaged"{
Prod1Resolution.removeAll();
Prod1Resolution.addItem({label:"Ship Replacements", data:"ship"});
Prod1Resolution.addItem({label:"Issue Credit Only", data:"credit"});
}
if(Prod1Reason.value=="over"{
Prod1Resolution.removeAll();
Prod1Resolution.addItem({label:"Returning Overage", data:"return"});
Prod1Resolution.addItem({label:"Keeping Overage, Bill me", data:"keep"});
}
}

Reply to this topic