I'm using Fieldgroup module to group my fields.

These show in the form for the 'modify' VBO action, but their fields are outside them and the fieldset is empty apart from its UI help text.

CommentFileSizeAuthor
vbo-actions-fieldgroup-fieldsets.png55.35 KBjoachim
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Component: Actions » User interface

Ah, this might be by design. When I select the checkbox for a field, it then appears inside the fieldgroup.

It does look a little confusing at first though. Could the fieldset be hidden initially?

dasjo’s picture

Issue summary: View changes

just stumbled across this as well. it would be great to have the fieldsets being hidden as long as they are empty

anrikun’s picture

Here's a workaround that disables field_group on views_bulk_operations_config_form.
Just add code below to a custom module:

<?php
/**
 * Implements hook_form_alter().
 */
function MYMODULE_form_alter(&$form, &$form_state, $form_id) {
  // Disable field_group on views_bulk_operations_config_form.
  if (isset($form_state['step']) && $form_state['step'] == 'views_bulk_operations_config_form') {
    foreach (element_children($form) as $key) {
      if (isset($form[$key]['#pre_render'])) {
        $form[$key]['#pre_render'] = array_values(array_diff($form[$key]['#pre_render'], array('field_group_form_pre_render')));
      }
    }
  }
}
?>