Dynamic Form Elements state with multiple conditions Can someone please help me figure this one out.  I have a form element that is dependent on certain values from another select.  It is only visible if certain values are selected.  I know i can do multiple conditions using different form elements.  However, how can i specify the same form element having multiple values.  Right now this only works for the last value.

$form['listing_attributes']['sort_by'] = array(
'#type' =&gt; 'select',
'#title' =&gt; t("Sort By"),
'#description' =&gt; t('How you would like the listing to be sorted by.'),
'#options' =&gt; array(
    'alphabetical' =&gt; t('Alphabetical'),
    'program_type' =&gt; t('Program Type'),                
    'level' =&gt; t('Degree Level'),       
    'subject' =&gt; t('Subject'),      
    'category' =&gt; t('Category'),
),
'#states' =&gt; array(
  'visible' =&gt; array(
    ':input[name="listing_page"]' =&gt; array('value' =&gt; 'school_page'),
    ),
),
);  

$form['listing_attributes']['group_by'] = array(
'#type' =&gt; 'select',
'#title' =&gt; t("Group By"),
'#description' =&gt; t('How you would like the sorted list to be grouped by.'),
'#options' =&gt; array(
    'program_type' =&gt; t('Program Type'),                
    'level' =&gt; t('Degree Level'),       
    'subject' =&gt; t('Subject'),      
    'category' =&gt; t('Category'),
),
'#states' =&gt; array(
  'visible' =&gt; array(
    ':input[name="sort_by"]' =&gt; array('value' =&gt; 'level'),
    ':input[name="sort_by"]' =&gt; array('value' =&gt; 'category'),
    ':input[name="sort_by"]' =&gt; array('value' =&gt; 'subject'),        
    ),
),
);
I found a way to use the "!" in order to specify what element i do not want it to show up for.  Its certainly an option and i can definitely use it.  Just thought you 

'#states' =&gt; array(
  'visible' =&gt; array(
    ':input[name="sort_by"]' =&gt; array('!value' =&gt; 'alphabetical'),  
    ),
),