Closed GoogleCodeExporter closed 8 years ago
Thanks for the feedback,
The request to displaying multiple error messages during js validation
initially came up in issue 31 -
http://code.google.com/p/php-form-builder-class/issues/detail?id=31&can=1. I
agree with your last statement. This is a topic that we will address in an
upcoming release. In the meantime, patches are always welcome.
It's worth noting that the jsErrorFunction form attribute can currently be used
to override the default javascript function responsible for error reporting
(scroll up and show box) within the project. This attribute should be set to a
string representing a javascript function. Your custom function will
automatically be passed the appropriate error message as its one and only
parameter. This attribute should be defined without parenthesis as seen
below...
$form->setAttributes(array(
"jsErrorFunction" => "myCustomErrorFunction"
));
This would allow you to implement the simpler modal/light box error message
that you described above.
Original comment by ajporterfield@gmail.com
on 15 Jun 2010 at 2:51
r332-r340 contains updates that add this functionality into the project. It
will be released in version 1.1.0. In the meantime, you can download the
lastest working copy with the command found below...
svn export http://php-form-builder-class.googlecode.com/svn/trunk/
php-form-builder-class
Original comment by ajporterfield@gmail.com
on 29 Aug 2010 at 9:14
Original issue reported on code.google.com by
eli...@gmail.com
on 14 Jun 2010 at 9:02