I am happily using the web2py FORM and custom validator's for form 
validation using JSON messaging.

The problem I have is a customer wants verbose messages for webpages, but 
succinct messages for everything else.
For eg,
On the webpage "You must enter an email address", "A password is required", 
"0000 is an invalid post code" while on an iPhone app or Mobile Webpage, 
"email required", "password required", "invalid postcode".

Device type is easy enough to determine by data from request.user_agent(), 
so that isn't a big issue.

I'm just curious to see how others approach this kind of situation. 
Obviously, I'd like to keep my registration method and FORM object function 
common so I don't have to maintain the same code in multiple places.



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