There is also this plugin, which automates the process based on field 
validators: http://dev.s-cubism.com/plugin_notemptymarker

Anthony

On Wednesday, July 9, 2014 5:12:57 PM UTC-4, Anthony wrote:
>
> You can do something like this in your models:
>
> required = SPAN('* required', _class='required')
>
> db.define_table('mytable', Field('myfield', comment=required))
>
> Use CSS to style the comment (e.g., make the text red).
>
> Anthony
>
> On Wednesday, July 9, 2014 4:08:00 PM UTC-4, Fabiano Almeida wrote:
>>
>> Hi @all!
>>
>> I am using SQLFORM.grid extensively in my application. How to visually 
>> mark the required fields on the form when the user adds record?
>>
>> Thanks in advance,
>>
>> Fabiano.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to