Very new to working with D7, worked on D6 for years though, and I'm trying life without conditional fields.
I'm trying to change a state of two groups of check boxes in the node form, and I can't get it to work.
I have two fields:
I want 'field_administrative_division' to appear based on one of three values selected in 'field_organization'.
This is the code base I'm using in a custom module. I've used every variant I can think of from documentation and other suggestions, and I get zero results:
$form['field_administrative_division']['#states'] = array(
'visible' => array(
':input[name="field_organization"]' => array('checked' => TRUE),
I've read there could be some naming issues with the fields, but the field names are not quite so straightforward with things like 'field_organization[und][Administrative]' for the checkbox I'm wanting to trigger, and the field for division has similar names (field_administrative_division[und] for the first checkbox)
I've read all sorts of other ideas, and tried many, but nothing is working. I don't know if its syntax, something with checkboxes, or names. I am also wondering if it's just something simple like no initial condition being set.
Any help would be much appreciated.