amateur barista
amateur barista

Reputation: 4520

Drupal combo box

How do you create a combo box using Drupal Form API (FAPI)?

Upvotes: 0

Views: 1663

Answers (2)

doublejosh
doublejosh

Reputation: 5774

Here is another technique for multigroup: http://drupal.org/project/flexifield

But maybe by combo box you wanted this: http://drupal.org/project/select_or_other

If neither of those do it, here is a post about more complex hierarchal options... http://groups.drupal.org/node/23899

Upvotes: 0

jpstrikesback
jpstrikesback

Reputation: 2308

Since there is no combobox form element you will need to use hook_elements() and a callback to create a custom combobox form element

Check out these docs for an example of how to use hook_elements()

If by combobox you mean a drilldown, check out hierarchical select

Upvotes: 2

Related Questions