3 Replies Latest reply on Mar 6, 2013 7:57 AM by kglad

    ComboBox related conditional

    Germaris Level 1

      Hi there!


      Prior to trigger an action with a button I want to warn user he/she must select an item in a ComboBox named "CBSCH".

      Item at index 0 of the ComboBox has no data attached and label is "Please, select a school".




      searchBtn.onRelease = function() {

          var school = CBSCH.selectedIndex;

          if (school = 0) {

              errorMsgFld.html = true;

              errorMsgFld.htmlText = "<font color='#FF0000'>Please, select a school.</font>";


          else {





      This doesn't work. What's wrong.


      I also used selectedItem.data = ""

      Wrong too.


      I thank you in advance for your help!