Hi. Is it possible to implement multiple selection list in the user profile?

For example, suppose I would like to ask a user "Which states did you visit in your life" ?

Thanks.

Shay.

Comments

yelvington’s picture

"List selection" is one of the field type options.

balaftuna’s picture

Thanks yelvington. My problem with list selection is that it enables you to select only 1 item, and I would like to allow the selection of any number of items.

vm’s picture

I don't find a way to do multiple selections from a drop down.

I think your only options at this point are using check boxes or a free form list. checkboxes would allow you to control the spelling of states though and remove any user errror with misspellings.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

balaftuna’s picture

ooh.. check boxes for say 50 items.. not sure how good will it look, though i can divide it into different categories, and then have say 10 items in each category.

Thanks guys.

vm’s picture

If it were me , I'd add this to a page all on its own.

example:

category: Where I've Been (This will add this to a totally new tab which should help avoid clutter)

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

balaftuna’s picture

VeryMisunderstood, this makes sense, though, again, having so many check boxes seems strange.

Ideally I would have 2 lists, one with all the countries, another one empty, with ADD/REMOVE buttons between them, where the content of the initially empty list can be populated from the full one.

cheers.

Shay.

linuxeasy’s picture

Hi All,

This is a bit customization on http://drupal.org/project/profile_checkboxes

which makes multiple-select-box on profile page Working.

Sorry as i dont know about creating a patch, i have posted a complete module with customization which can be directly enabled/disabled.

This module if used is a fully working and tested one!

Usage is same as you would use profile_checkboxes module. It give you a fourth option of creating a multi-select list-boxe when you create a new profile file which is usually yoursite.com/admin/user/profile/add/selection (see at bottom of this page after module installation).

Please find this module customized at http://drupal.org/files/issues/profile_checkboxes.zip

Thanks!
Linuxeasy!