Re: Getting my validation errors to do like I want

2007-01-15 Thread tracyfloyd
Perfect! I'm using tagIsInvalid in my view like this: label ?php if ($html-tagIsInvalid('Contact','firstname')) { echo 'style=color:#99;'; } ? First Name:/label So that the text color of the labels of any invalid fields is returned red. Thanks mikee

Re: Getting my validation errors to do like I want

2007-01-15 Thread Mikee Freedom
no probs, enjoy! On 16/01/07, tracyfloyd [EMAIL PROTECTED] wrote: Perfect! I'm using tagIsInvalid in my view like this: label ?php if ($html-tagIsInvalid('Contact','firstname')) { echo 'style=color:#99;'; } ? First Name:/label So that the text color of the labels of any invalid fields is

Re: Getting my validation errors to do like I want

2007-01-14 Thread Mikee Freedom
It's still early in the morning here in NZ so my brain has not switched on completely... However, I know for sure that the html and form helper have access to the validation errors list. Check out this function found in the html helper : function tagIsInvalid($model, $field) { return

Getting my validation errors to do like I want

2007-01-12 Thread tracyfloyd
I'd like to be able to customize how a form's validation errors are displayed... i.e. instead of using the tagErrorMsg and having it spit out a div with a class applied to it for each error message, I'd like to just make the field label text red and add something like: Please correct the errors