On Friday, 30 March 2012 15:43:15 UTC+1, Anthony wrote: > > IS_LIST_OF takes a "minimum" argument, which defaults to 0, so it should > still validate if no items are submitted (it also takes a "maximum" > argument). If that's what you're looking for, you shouldn't need > IS_EMPTY_OR at all
Great, that fixes that half perfectly :) > As for errors, when a validation error occurs with IS_LIST_OF and the list > widget, the errors will be in form.errors, but they will not be displayed > on the form by default (it's complicated, and when we added support for the > IS_LIST_OF validator, we didn't work that out). So, you're responsible for > checking form.errors and deciding how you want to communicate the error in > the UI. > ok, thanks for the answer - I'll see what we can do :) F

