Using form API in D7, I need to use from states to setup a visible input with this condition :
field1 = value A AND (field2 = value B OR value C OR value D) Something like this, but this example doesn't run :
'#states' => array( 'visible' => array( array(':input[name="question_inhabitant_type"]' => array('value' => 'owner')), 'AND', array(':input[name="question_building_type"]' => array('value' => 'house100')), 'OR', array(':input[name="question_building_type"]' => array('value' => 'house150')), 'OR', array(':input[name="question_building_type"]' => array('value' => 'house200')), ), ), Any idea?