You could use something like:

    db.table.field.comment = 'required'

or 

for field in db.table:
   if field.required:
       field.comment='required'


On Saturday, 24 August 2013 09:36:16 UTC-5, mr.freeze wrote:
>
> I want to show users which fields are required *before* they submit a 
> form. Before I reinvent the wheel, is there a mechanism for adding a 
> "required" class to fields that have IS_NOT_EMPTY or required=True already 
> built into web2py?
>
> Thanks,
> Nathan
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to