Suppose i create a table:
db.define_table('device',
Field('name',unique=True,notnull=True),
Field('alias_name',requires=IS_NOT_EMPTY(error_message='field can not be 
empty')),
Field('devicetype'))

and i am creating a form as:
form = crud.create(db.testbed)

>From table definition it is clear that 'name' and 'alias_name' field can't 
be empty but user can leave 'devicetype' field blank. So i want that when 
form will be opened to user for entering the values, fields such as  'name' 
and 'alias_name' should be highlighted with some special mark such as 
star(*) so user get idea that he can't leave these fields blank.
How to do that?
thanks.


-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to