Re: [web2py] How to change the message 'value already in database or empty' in Register?
i think you can achieve it using form validation on your controller e.g. if form.errors.name: response.flash = "Sorry chap, that doesn't exist" best regards, stifan > -- 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.
Re: [web2py] How to change the message 'value already in database or empty' in Register?
hey, is there any way in which i can flash this message (like response.flash)? On Monday, 19 December 2011 06:10:09 UTC+5:30, ニコノコ wrote: > > IS_IN_DB(db(db.mytable.id>0), 'mytable.id', db.mytable._format > > ,error_message=T("Sorry chap, that doesn't exist")) > > > You may specify your own error_message for any built-in validator. > > > On Sunday, December 11, 2011, Constantine Vasil wrote: > >> How to change the message 'value already in database or empty' in >> Register? >> >> Thanks, >> >> Regards, >> --Constantine >> > -- 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.
Re: [web2py] How to change the message 'value already in database or empty' in Register?
IS_IN_DB(db(db.mytable.id>0), 'mytable.id', db.mytable._format ,error_message=T("Sorry chap, that doesn't exist")) You may specify your own error_message for any built-in validator. On Sunday, December 11, 2011, Constantine Vasil wrote: > How to change the message 'value already in database or empty' in Register? > > Thanks, > > Regards, > --Constantine >
[web2py] How to change the message 'value already in database or empty' in Register?
How to change the message 'value already in database or empty' in Register? Thanks, Regards, --Constantine