Important advise: use the book as first help. It is a precious information 
source.

From 
http://web2py.com/books/default/chapter/29/07?search=validators#Validators

Built-in validators have constructors that take an optional argument:

IS_NOT_EMPTY(error_message='cannot be empty')

error_message allows you to override the default error message for any 
validator.

Here is an example of a validator on a database table:db.person.name.requires 
= IS_NOT_EMPTY(error_message='fill this!')

where we have used the translation operator T to allow forinternationalization
. Notice that default error messages are not translated.


>From http://web2py.com/books/default/chapter/29/11?search=form.errors we 
know that:

The color of the errors is given in the CSS code in "layout.html".


Il giorno mercoledì 14 novembre 2012 18:13:43 UTC+1, dantuluri jaganadha 
raju ha scritto:
>
> please reply as soon as possible
>
> On Friday, October 12, 2012 9:37:00 AM UTC+5:30, dantuluri jaganadha raju 
> wrote:
>>
>> Hi,
>>                     I am getting "enter a value"(with red colored back 
>> ground) when not entering any data to field of table (to which i made 
>> constraint IS_NOT_NULL). How can I change that flash to some "DESIRED 
>> ONE....."(including back ground color) for  'ONLY SOME'  fields of table
>>
>>
>>                                   Thank you in advance...
>>
>

-- 



Reply via email to