Group cannot be controlled by a field in another group.
MarcElbichon - August 25, 2009 - 14:27
| Project: | Conditional Fields |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Why group cannot be controlled by a field in another group ?
Is there any reason to this ?
This can be done by commenting lines 484 and 489 like this :
<?php
// if (!$in_group) {
if ($allowed_values[$field['field_name']] = content_allowed_values($field)) {
$available_fields[$field['field_name']] = $field;
}
// }
?>You need too modify line 491 changing $context to 'group' (Warning on preg_match).

#1
It would be nice, but it needs testing. When I disallowed this in the first place, there was a reason, but now I can't remember why (it might have to do with cases when one of the group is collapsed?).
Could you please update the feature to work with 6.x-2.x-dev and create a patch?
#2
subscribing
#3
See patch