In addition to the Anthony's answer 
<https://groups.google.com/d/msg/web2py/Ssr-fSfGCCw/k9RS3kFNDwAJ>, if you 
want also experiment simple native client side validation for web form, you 
could customize the field widget

Field('myfield', 'string', requires=IS_NOT_EMPTY(), widget=lambda f,v:
SQLFORM.widgets.string.widget(f,v,_required=True))

Read more 
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/Data_form_validation#The_required_attribute


Il giorno mercoledì 28 dicembre 2016 13:24:57 UTC+1, Andrea Fae' ha scritto:
>
> Why if I use this option in Field table database but when I insert and I 
> leave not typed this field the system accepted it?
>

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