[web2py] Re: register form and service conditions acceptance

2012-08-08 Thread Marco Prosperi
thank you for pointing that out. In this form it works (I've forced id=999 for PluginMModal in user.html) _onclick="jQuery('#999').fadeIn(); return false' On Wednesday, August 8, 2012 2:00:10 PM UTC+2, Anthony wrote: > > auth.settings.extra_fields['auth_user']= [ >> Field('accept_privacy

[web2py] Re: register form and service conditions acceptance

2012-08-08 Thread Anthony
> > auth.settings.extra_fields['auth_user']= [ > Field('accept_privacy','boolean',default=False,label=DIV('click me!', > _onclick='jQuery(#%s).fadeIn(); return false' % request.cid))] > I'm not sure about the details of pluginMModal or whether this is the only problem, but the jQuery sele

[web2py] Re: register form and service conditions acceptance

2012-08-08 Thread Marco Prosperi
After looking in the documentation and in the source (on how PluginMModal calls jquery) I've tried this approach that still doesn't work yet (no error messages) but maybe it's better to get suggestions (using the same user.html below) auth.settings.extra_fields['auth_user']= [ Field('acc

[web2py] Re: register form and service conditions acceptance

2012-08-07 Thread Marco Prosperi
> > > Maybe show what you tried. I would think you could make either the field > label or comment (the comment appears after the input field) a link, and > trigger the modal dialog with an onclick attribute or a jQuery event > handler. > > Anthony > ok, in models/db.py I have put (but the link

[web2py] Re: register form and service conditions acceptance

2012-08-06 Thread Anthony
> > hi all, I would like to customize the register form so that an additional > field would appear (a boolean) to let the new user accept the service > conditions. I've tried to add the new extra field with > > auth.settings.extra_fields[] > > and it works. But the problem is how to present to