I want to hook the validation routines so that I can flag html labels and change their color to better indicate which fields need to be corrected in a form.
Is there a way to do this conveniently and/or conventionally?
I want to hook the validation routines so that I can flag html labels and change their color to better indicate which fields need to be corrected in a form.
Is there a way to do this conveniently and/or conventionally?
Have a look at field_error_proc
Fred
you can interrogate the model errors to see what fields are invalid, but it's easier to use a plugin that someone else has already done the same thing in. I've recently used Formtastic to generate forms and the resultant helpful, highlighted errors. http://github.com/justinfrench/formtastic
Michael Pavling wrote: