On Tuesday, December 16, 2014 8:48:29 AM UTC-8, sai7 Harsh wrote:
>
> Sir,
> Could you please explain how to give a condition such that below that it 
> need to display error like marks above 60 only can apply but some person 
> enter 50 so it need to display error 
> and one more thing how to keep any field in the form is optional no need 
> to fill it 
>

You should take at look at the chapter of the Web2Py book that discusses 
validators.
<URL:http://web2py.com/books/default/chapter/29/07/forms-and-validators>
 

In particular, take a look at IS_EMPTY_OR() and IS_DECIMAL_IN_RANGE().
<URL:http://web2py.com/books/default/chapter/29/07/forms-and-validators#Range--set-and-equality-validators>

Are you planning on using SQLFORM, or doing HTML input fields?

/dps

-- 
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