The labels for the checkboxes are the names of the mailinglists, that's ok,
but not for the destinataire which the email field is replaced by the
destinataire id. This is just a simple form where one user can subscribe to
multiple mailinglists giving his email.
In the same way, I want to limit
So the label for your checkboxes is the record id instead of the email
address?
Right at the moment I don't know the answer ... Sorry.
On Monday, August 6, 2012 3:27:15 PM UTC-4, goabbear wrote:
>
> Hi,
> thanks for your help, I can now have checkboxes in the form, but I can't
> change the "d
Hi,
thanks for your help, I can now have checkboxes in the form, but I can't
change the "destinataire" field from "id" to "email" :
def sabonner():
abo = db.abonnement
abo.mailinglist_id.widget = SQLFORM.widgets.checkboxes.widget
form = SQLFORM(abo)
return dict(form=form)
Where ca
For starters, I'm not sure the syntax is correct for multiple validators.
The Web2py manual states they need to be in the form of a list.
http://web2py.com/books/default/chapter/29/7#Validators
Also notice I have cleaned up the closing parends.
db.abonnement.destinataire_id.requires = [
IS_
4 matches
Mail list logo