dependent

Chaos tool suite review: Dependents

It's been a long time that I want to write about Ctools. I have two good reasons: They are extremely useful -God bless Earl Miles, and it is very short on documentation.

Ctools have many tools to offer and I am going to explain some of them, one at a time. This time, I want to show you how to use Dependent tool: It make form items appear and disappear based upon the selections in another item.

Concept

When using Dependent tool, you have two kind of fields:

  • One field that it's selected value is observed by other fields.
  • One or more fields that are depended on the first field and appear or disappear upon the selected value of it.

Field that others are depended on its value can be one of these types: Radios, Checkbox and Select. Dependent fields can be anything, even markups.

Syndicate content