Closed alfonsodg closed 10 years ago
From massimod...@gmail.com on March 23, 2010 12:22:04
It should not allow zero choice since zero (for multiple) is you always have the option to select no option. Perhaps I misunderstood what you ask.
Status: Invalid
From roman.ba...@gmail.com on March 23, 2010 12:39:36
Exactly. The problem is: I do have the option to select no option with the default widget, but I do not have that option with checkboxes.widget. If I don't select any option the validator returns the error "value not in database".
From massimod...@gmail.com on March 23, 2010 12:44:11
Let me look into this tonight....
Status: Started
From massimod...@gmail.com on July 26, 2010 06:30:42
I think this has been fixed some time ago.
Status: Fixed
From roman.ba...@gmail.com on March 23, 2010 14:14:41
I have a field with IS_IN_DB(..., multiple=True) validator. If I use default widget (listbox) it allows zero choice (when you don't select anything in the listbox). If I use checkboxes.widget instead it doesn't allow zero choice. As I understand it should allow zero choice no matter what widget I use.
I use version 1.75.5.
Original issue: http://code.google.com/p/web2py/issues/detail?id=73