Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions

Custom validator error message


Reply

2 Posts   1794 Views

Avatar
katja

18 March 2010 at 1:40am Community Member, 46 Posts

Hello,

I was wondering if there is an easy way to override the error message returned by the validator. I looked at Sapphire/Validator.php, but I can't figure it out myself..

Cheers
Katja

Avatar
FungshuiElephant

22 February 2011 at 3:16am Community Member, 57 Posts

And old post, but I thought I'd reply any way so it's there for searchers..

FormFields have a setCustomValidationMessage function which should propably work:
$myField->setCustomValidationMessage($msg);