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