Closed (fixed)
Project:
Conditional Fields
Version:
6.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2009 at 01:26 UTC
Updated:
16 Feb 2012 at 14:10 UTC
Currently it appears that when orphaned items are hidden they are completely unset as per these lines:
unset($form[$field['control_field_in_group']][$field['field_name']]);
unset($form[$field['field_name']]);
Could it be changed to set '#access' to false instead of completely unsetting it? Doing so would allow other (most likely custom) modules to override conditional fields' decision without needing to recreate the relevant portions of the $form array. Would doing so lead to unforeseen consequences?
Comments
Comment #1
peterpoe commentedI did as you suggested in nodeapi (node view). It is already in 1.0.
But still not in form_alter, because it caused problems with required fields. Will look into it though.
Cheers.
Comment #2
peterpoe commentedUsing #access everywhere now.