Closed (duplicate)
Project:
Field Group
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2012 at 16:31 UTC
Updated:
12 Oct 2017 at 06:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
haggan commentedSome news about this?
Any one found a solution for this?
Comment #2
jibus commentedI am also looking for this feature
Comment #3
zebradog commentedI'd also be curious to hear more about this as I'm running into the same problem
Comment #4
mark trappComment #5
mizage@gmail.com commentedI'm all for this! :)
Comment #6
linus79 commentedAny news?
Comment #7
TelFiRE commentedPossible duplicate?
http://drupal.org/node/1161314
Comment #8
jibus commentedYes ! Duplicate of Fieldgroup support
Comment #9
vpsaravanan commentedConditional field module is working fine to toggle form fields by states property. But when we add group to grouping fields, states property is working fine for fieldset alone. It is not supporting other groupings (div) to group fields. If we add any background-color to groupings (div), it is displaying div with bg color (bg-applied-div.png). To toggle such divs, i used below code as a temporary solution.
Add class as header-div in the first(parent) group (add_this_class_to_first_grouping.png).
$(document).bind('state:visible', function(e) {
if(e.trigger) {
var selected_outlet_type_div;
var outlet_parent_div;
var outlet_before_selected_parent_div;
$.each(e, function(key,val) {
if(key == 'value') {
if(val == true) {
var id = $(e.target).first().attr('id');
selected_outlet_type_div = id;
outlet_parent_div = $('#'+selected_outlet_type_div).parents('div.header-div').eq(0).attr('id');
return false;
} else if (val == false) {
var before_parent_div_id = $(e.target).first().attr('id');
outlet_before_selected_parent_div = $('#'+before_parent_div_id).parents('div.header-div').eq(0).attr('id');
}
}
});
if(outlet_parent_div != undefined) {
$('#'+outlet_parent_div +'.field-group-div').css('display', 'block');
//if($('#'+outlet_parent_div).find('>.field-group-div').is(':visible')) {
$('#'+outlet_parent_div).find('.field-group-div').show();
//}
} else if(outlet_before_selected_parent_div != undefined) {
$('#'+outlet_before_selected_parent_div).find('.field-group-div').hide();
}
}
});
Comment #10
vpsaravanan commentedComment #11
vpsaravanan commented