[web2py] How to not let user input some particular values in the name field in this db?

2016-04-13 Thread Nico de Groot
See the Web2py book at http://web2py.com/books/default/chapter/29/07/forms-and-validators We have validators for this purpose. You can also handle it at the client side, using JavaScript. Nico de Groot -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

[web2py] How to not let user input some particular values in the name field in this db?

2016-04-13 Thread Stephen Duisberg
db.define_table('person', Field('name'), Field('pic','upload') ) What should I do such that the name field won't accept names with some words like 'the', 'rock' and all. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source