Hello!
I think I have the same problem,I have a checkboxes and if user don't
make any choice (he just submit) the message "Value not allowed"
appear...
here is a part of code:
form=SQLFORM.factory(SQLField('Postulants',requires=IS_IN_SET(liste_id,
(liste_postulants),multiple=True),
widget=SQLFORM.widgets.checkboxes.widget))
if form.accepts(request.vars,session):
...do this and this...
redirect(URL(r=request,f='listes'))
of course I can complete by :
if form.errors:
redirect(URL(r=request,f='listes'))
return dict(form=form)
and it work ; but is there a more élégant way do do this ?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---