I am nesting my field collections a few levels deep, but find that although my core field types (textboxes etc) work dependably, my php markup fields always show. Any advise / patches / ideas would be very appreciated.

Comments

Vote_Sizing_Steve’s picture

My current workaround to this issue: Create a boolean field which is checked dependably; and then with some jquery toggle the markup field according to the status of the checkbox.

astonvictor’s picture

Issue summary: View changes

Hi there.
You can use State API.

My simple example (form alter for article_node_form)

$form['field_markup']['#states'] = array(
  'visible' => array(
    'input[name="field_tags[und]"]' => array('filled' => TRUE),
  ),
);

field_tags[und] - default tag field