I think that this would be great as a general form element like #select itself. One could themn use hook_form_alter and change #select t #multiselect when you wanted that UI. A #process on the field element would transform the input data so that any validate and submit handlers would see the data just as if a regular #select had been used.

I would use such a thing in organic groups module for selecting audience.

Basically, this sor tof generalization is going to be needed anyway to port this module to D6 becuase cck widgets are now just regular fapi form elements.

Comments

nath’s picture

Version: 5.x-1.x-dev » 5.x-2.0

I would love something like this as well.

attheshow’s picture

Version: 5.x-2.0 » 6.x-1.0
Assigned: Unassigned » attheshow
Status: Active » Fixed

Drupal 6 version is more generalized. Probably closer to what you're asking for. The widget can now be used on any text, integer, float, user reference, and/or node reference field.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jp.stacey’s picture

This isn't really a solution for all select form elements - as in a form API-level solution - but just most common CCK data types. So it can't really feed into #418104: Use this module with OG and non-CCK form API generally? very much. But I'll continue discussion there now this is closed.