Hello
I trying using field group only in the node/edit, but not for node/add, and i can't. If i using this, field group display for both. I need hide fields in node/edit behind one tabs
Can You help mi a little bit?

Comments

xandeadx’s picture

example disable grouping in node editing form for bundle "Page":

/**
 * Implements hook_form_FORM_ID_alter(): page_node_form.
 */
function MODULENAME_form_page_node_form_alter(&$form, &$form_state) {
  // Node create form
  if ($form['nid']['#value']) {
    $form['#groups'] = $form['#fieldgroups'] = $form['#group_children'] = array();
  }
}
nils.destoop’s picture

Status: Active » Closed (fixed)

Looks like a good example. The only way is altering, it's not possible through UI.