2 Replies Latest reply on Sep 12, 2008 6:46 AM by EvolvedDSM


      Can you add validators to a comboBox to make sure the users select one of the item in the comboBox?
        • 1. ComboBox
          Ventis85 Level 1
          You mean something like this?

          <mx:Validator source="{combobox}" property="selectedItem" required="true"/>

          Why? Seems to me a Combobox always has one item selected, namely the first item in the list. If you want a "none" field you can catch that in your actionscript.
          • 2. Re: ComboBox
            EvolvedDSM Level 2
            Agreed with Ventis.
            If your combo box was named 'cbx', in your code to submit the form...

            if(cbx.selectedItem.data == ''){
            Alert.show("Please select a choice before continuing.");
            // code to submit your form