Hi, maybe I'm missing something obvious, so please humour me for a second. If you create a textfield in CCK you can choose a Select List as a widget. OK. Is it possible to expose this same field in Views as an Exposed Filter and keep it a select list? At the moment I can't get it to be anything other than text input.

Cheers

Comments

intent’s picture

Interested in the answer to this as well.

ludo1960’s picture

..you can do it in Views 2

doublejosh’s picture

Where, where, where!!!

no2e’s picture

How is it possible in Views 2?

Heilong’s picture

Need the same feature, select list turn to autocomplete textbox, how is it possible in Views 2 ???

theunraveler’s picture

+1+

mk31762’s picture

I gave up on doing it this way. From what I can see, this isn't possible. My solution was to make use of Taxonomy instead. I created a list of terms, in my case a list US States, and associated it with my CCK type. In Views I selected Taxonomy:Term as the filter type, exposed it, and was able to select my vocabulary and chose Dropdown as the Selection type. I accomplished the same thing and it worked great. The only drawback is that it was more cumbersome to add Taxonomy terms than it was to add items to a CCK list. Still, it was worth it.

esllou’s picture

It seems we can expose a select list only if:

- it's integer based
- it's taxonomy based

yet in D5, I have a text based select list, exposed it and it is a select list also in its exposed form. So that's a shame, that CCK Views integration seems to have taken this half step backwards.

TheodorosPloumis’s picture

How can I expose an integer based cck field in 6.x? The only option I can see is the numerical option (less than, greater than, equal to etc) and it's the same with the decimal option. I use views 3.x and cck 2.8.

TheodorosPloumis.com - Drupal developer @ eworx.gr.

appel’s picture

It is possible, as explained in a comment by jainrutgers:

1) Create a content type. Add a cck text field to it. For widget option choose 'Select list' which will be there by default.

2) On setting page of that particular field you will have option to give allowed values. Put all the Categories name that you want to be exposed to user (turn off your any text editor if its ON before implementing this step)

3) Create a new view and in filter select the filed that you created in content type with allowed values. (There will be two version of that filed. choose the Allowed one). And choose expose the field to user.

http://groups.drupal.org/node/20130#comment-72958

beyond67’s picture

Thank you this worked perfect!

tuthanh’s picture

Thank appel. It works.

The trick is there are two versions of a field: the original field and the one with allowed values. You must pick the "allowed values" in order to display the filter as select list.

mennonot’s picture

It turns out this is fairly simple to do with taxonomy terms in Views 2.

Just select "Taxonomy Term" with subtitle "The taxonomy term ID".. I made the mistake of selecting "Taxonomy Term" with subtitle "Taxonomy term name" which only shows users a fill in the blank. "Taxonomy Term" with subtitle "The taxonomy term ID" will allow you to select a vocabulary and then display the terms in a drop down (this selection is made by clicking the gear icon).

lilianacaraveo’s picture

I need to exposed my taxonomy terms not in listbox I need to show up the information using checkboxes.

Did you know how. I using drupal 7

FAAREIA’s picture

im interesed too.
i need to list all nodes with checkboxes within a a user profile type, is this possible from views?
I tried ViewField but this is not the case.

doublejosh’s picture

yevgeny.ananin’s picture

This might help explain how to use hook_form_alter to change an exposed filter within a view into a select list: http://www.rwkdesign.com/blog/using-hook-views-query-alter-change-query-...

jailleto’s picture

I found a way with View 2 when you add a filter you should find a field named

YourContentType : Configure filter Content: Status (your_field_name) - Allowed values
After you can select the type of select box you want (Multichoice or single choice)
.