Using #states to change form element visibility, I would like a 2nd element to be visible only if the 1st element is filled in. The first element is a pair of radio buttons, so I tried:
'#states' => array('visible' => array(
':input[name="radio-id"]' => array('value' => '0', 'value' => '1'),
),),
However that doesn't work, the 2nd value condition clobbers the first, so the other element only appears if the 2nd radio ('1') is checked. So then I tried:
:input[name="radio-id"]' => array('checked' => TRUE),
Nope, that doesn't work either.
What is the correct syntax to use for this, and which documentation page is it on? (drupal.org or other site?) I've looked and looked but can't find it.