Optional CCK fields
Is the开发者_开发知识库re a module in Drupal to enable or not a text field or more in general a CCK field? For example a check box option: when this is checked a textfield appears below, otherwise it is not visible.
Is there a module to switch between 2 CCK fields? For example I have 2 text areas, and I can only fill one (the others should be automatically disabled). The user can decide which one to enable with a radio button or by checking a check box.
thanks
Although I haven't used it extensively, the Conditional Fields module seems like it might do what you want.
Otherwise, you can check into using the Form API's #ahah parameter to roll your own.
Hope that helps!
精彩评论