aneuryzm
aneuryzm

Reputation: 64834

Optional CCK fields

  1. Is there 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.

  2. 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

Upvotes: 2

Views: 259

Answers (1)

theunraveler
theunraveler

Reputation: 3284

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!

Upvotes: 2

Related Questions