Assuming you're using the standard user() function:
def user():
if request.args(0) == 'register':
db.auth_user.email.comment = 'custom comment'
return dict(form=auth())
So, the comment is only set when the 'register' action is requested.
Anthony
On Saturday, December 31, 2011 11:29:44 PM UTC-5, Dave wrote:
>
> I want to have a comment for the email field of the register form. I
> did so with:
> db.auth_user.email.comment = 'custom comment'
>
> But now that comment is showing across all auth forms (login, reset
> password, etc.). I currently have the auth formstyles set to divs but
> there is nothing to differentiate the login form from the other forms
> in any of the css or html markup in order to hide the comment.
>
> Is there a way to do this?
>
> Thanks,
> Dave