Once I have the class, how can I get the jQuery entropy check for password 
strength to change the background color? Again, this is on a custom form so 
I'm having quite some trouble with this...

On Monday, November 12, 2012 3:51:48 PM UTC, Massimo Di Pierro wrote:
>
> form.element(name='email').add_class('test')
>
> On Sunday, 11 November 2012 21:03:04 UTC-6, Daniele wrote:
>>
>> I am writing a custom registration form. I noticed that in the 
>> controller, if I put
>>
>> def signup():
>>     return dict(form=auth.register())
>>
>> I get a Retype password field. However, if I put
>>
>> def signup():
>>     form = SQLFORM(auth.settings.table_user,
>>             labels = {'email':'Email address'},
>>             submit_button = 'Sign up',
>>             separator = '', _class='form-horizontal')
>>     return dict(form=form)
>>
>> I get None for the Retype password field. How can I fix this?
>>
>> Also, how can I specify the class of the fields and buttons??
>>
>> Thanks!
>>
>

-- 



Reply via email to