I started to edit FormBuilder "devel" SVN branch in order to add object-oriented handling of errors which I proposed in my earlier email.
But now I am confused:
The following code in FormBuilder/Field/
text.tm (and similar codes in other Field/*.tm modules) seems to be never called:
# required?
$close_brace .= <<EOJS if $self->required;
if (! entered_$jsfield) {
alertstr += '$alertstr';
invalid++;
}
EOJS
I don't see
if (! entered_$jsfield) {
alertstr += '$alertstr';
invalid++;
}
in generated JavaScript code!
Is this code an anachronism which should be removed?
--
Victor Porton -
http://portonvictor.org