How can I have multiple values trigger the Form API's #states?
Say for example, I wanted this field to be visible not only if the value is 5 (currently works below), but wanted to make the field visible if the the values are 3, 4 or 5.
'#states' => array(
'visible' => array(
':input[name="field_star_rating"]' => array('value' => t('5')),
),
),
As a note, I tried the following and it does not work. It only works if the value is '4'
'#states' => array(
'visible' => array(
':input[name="field_star_rating"]' => array('value' => t('5')),
':input[name="field_star_rating"]' => array('value' => t('4')),
),
),
This also does not work, it too only works if the value is '4':
'#states' => array(
'visible' => array(
':input[name="field_star_rating"]' => array('value' => t('5'), 'value' => t('4')),
),
),