Hi,

I am using CCK with Drupal 6.x and am trying to create a combo box with a group of set values, however i do not see this option. I see the check box, radio button, and select list widget options when creating a custom field, however no combo box. I looked through the 50 or so module add-ons for CCK (Drupal 6.x) and do not see that kind of field there. Am I missing something?

Thanks.

Comments

ccmd00d’s picture

Bump...any help on this would be much appreciated. I am a new user to drupal and have been play around with the CCK and cannot figure this out.

nhdriver4’s picture

It's a text type. After creating a text type, the widget type should be "Select list". No, that doesn't mean to choose one of the options below! See the following image: http://files.onovia.com/support/drupal/drupal_combo_create.png

Note that when you are adding your values, use the following format: value|Label

Here's a live example:

105|Los Angeles, CA - 105
120|Sacramento, CA - 120
810|San Diego, CA - 810

Hope that answers your question!

ccmd00d’s picture

Thank you for your reply. I have seen this option, however when I choose the select list it is a list box containing the values one after another (not a dropdown combo box). Am i missing some other setting?

vkr11’s picture

nhdriver4’s picture

If you are looking for a multiple select box, then changing "Number of Values" in your select list will do the following: http://files.onovia.com/support/drupal/cck_multiple_select.png

If I'm still not understanding, please link me to an example somewhere.

egrotke’s picture

This is what I'm looking for but it's not showing up under global settings on the manage fields page.
Maybe this needs to be enabled in settings or permissions? Or maybe it was discontinued?

NickFranceschina’s picture

holy crap, you monkeys... pay attention... he's asking for a COMBO BOX!!
http://en.wikipedia.org/wiki/Combo_box

something like this:
http://www.metabuilders.com/Tools/ComboBox.aspx

Derek, I have been searching as well... and can't find anything:
http://drupal.org/project/Modules/category/88

I suppose you're just gonna have to build one! :)

cjke.7777’s picture

Mate before you call the people trying to help 'Monkey's' read the answers carefully because the poster above answered the question correctly.

To create a combobox (yes like the one describe in wikipedia) all you have to do is set the widget to "Select List" then for the "Allowed Value List" set it to a value|name pair.

example
item1|Item 1
item2|Item 2
item3|Item 3

NickFranceschina’s picture

that solution is a LIST BOX or SELECT BOX... it is not a COMBO BOX which is what he is asking for. A combo box lets you choose from a list or type in your own entry if it isn't in the list (look at the example I linked up there... read the wikipedia entry...)

There is no such thing as a ComboBox in HTML... its not part of the spec... THUS the only solution is for someone to build a custom "combo-box" field for CCK. the YUI has a nice enough combo-box solution...
http://developer.yahoo.com/yui/examples/autocomplete/ac_combobox.html
but it hasn't been implemented for Drupal yet:
http://drupal.org/project/yui (see list of "Widgets")

altavis’s picture

Recipe works for "Number of values" = 1.

I know, it would be nice to have a draggable list of combos.

Jean-Philippe Fleury’s picture

subscribing

andyf’s picture

subscribing, also made new thread in post-installation.

rolodmonkey’s picture

It sounds like what you are looking for is the Select (or other) module:

http://drupal.org/project/select_or_other

--

Read more at iRolo.net

egecan’s picture

That's it! The only thing I'd consider is if a custom value is automatically added to the combo list... Otherwise, I'd have to do it with rules.