OK, maybe I'm being thick, but that's not working for me:
In the configure method I have:
$this-setWidget(notes, new sfWidgetFormTextarea());
$this-setValidator(notes, new sfValidatorString(array
('min_length' = 0, 'max_length' = 4,'required' = false),array
('invalid'='Notes
Yeah - instead of invalid, us max_length, see
http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfvalidatorstring
On Tue, Nov 3, 2009 at 10:47, Mark Smith
marksmith5...@jungle-monkey.com wrote:
OK, maybe I'm being thick, but that's not working for me:
In the configure
You can customize them:
http://www.symfony-project.org/forms/1_2/en/02-Form-Validation#chapter_02_sub_customizing_error_messages
On Mon, 2009-11-02 at 08:58 -0800, Mark Smith wrote:
Is it possible to customise the error message coming from an sfForm so
that the contents of the validated field