"Number of values:" field values wont be saved ever.
By default the value is "Unlimited" but when you try to change the value to any numeric like 1,2,3,4 - it just doesnt save the value.
Every time when you open configuration page for the field with type of "Multiselect" you see that the value is "Unlimited" again.
It doesnt work when you try to create a new content with such field either.

Comments

Anonymous’s picture

Assigned: » Unassigned
andreypaa’s picture

I am have this bug to.

attheshow’s picture

Status: Active » Needs work

It needs to be validated using the "optionwidgets_validate" function within CCK, but for some reason I can't get that to work. So, for the moment, I've made a change that will eliminate options other than "Unlimited" from the widget configuration form. That will keep others from running into a user interface issue like this.

vood002’s picture

I have the same problem...love multiselect, but can't use it without limiting user options. Subscribing.

landry’s picture

@attheshow : the last change you made makes it weird.. because now, absolutely no option for the number of values is shown if say, you used another widget when creating the field and set it to a finite number of values, then change it back to use multiselect -> $final_options becomes an empty array. Maybe smth like

if ($value != 'Unlimited') {
   $value = "Unlimited";
}
$final_options[$key] = $value;

Might be better/clearer ?

grey_’s picture

Also subscribing. This is a showstopper for me.

jesss’s picture

+1 Module seems great, but I really need to be able to limit the number of items selected. I'm currently using it with Content Taxonomy if that makes a difference.

attheshow’s picture

Version: 6.x-1.5 » 6.x-1.6
Assigned: Unassigned » attheshow
Status: Needs work » Fixed

Should be fixed in the dev version. Please test and report if the change works. If so, I'll get a 1.7 release out very soon!

attheshow’s picture

Version: 6.x-1.6 » 6.x-1.x-dev
jesss’s picture

Works for me!

Status: Fixed » Closed (fixed)

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

vood002’s picture

thank you for your hard work attheshow! The fix works great, this module is a dramatic UI improvement over standard multiselect boxes.

attheshow’s picture

You're very welcome. Now if I can just get it successfully updated to Drupal 7. I think I'm about 90% of the way there. Follow that issue at #693030: Drupal 7 port.