FAPI #states for multiple selections. I've used the FAPI #states system before to show/hide conditional fields. It's great.

However, when I am trying to show a field based on another field's value, I'm running into a problem. The documentation for this only explains how to show/hide a field based on whether my independent field has a particular value. In my case, I don't care what the exact value is, but if it has multiple values selected from a select list, I'd like to show my dependent field, and hide it otherwise.

Does the FAPI #states system support this? If so, where can I find the syntax for how to use it?
You should be able to define something like this:

'visible' =&gt; array(
  array(
    ':input[name="ELEMENTNAME"]' =&gt; array(
      array("value" =&gt; 'VALUE_1'),
      array("value" =&gt; 'VALUE_2'),
    ),
  ),
),


See this question  for more details