<html>
<body>
Still playing with the vertically-aligned example and trying out various
features, including the validation constraints and error messages.
But how to test the input error checking without lots of code or
embedding into another program?<br><br>
It is possible to feed sample input values into FormFu using the YAML
config file. At the end of my FormFu .yml I added <br><br>
<tt>query:<br>
contact_phone: testing<br>
contact_email: tshinnic@gmail.com<br><br>
</tt>to set the form's 'input' values.<br><br>
I had tried to use the "process:" key as documented, but
because the config loading is still going on process() really can't, uh,
process yet. So to force 'input' processing to test constraints and
all, I simply added a process() call to the short demo program.<br>
<tt> my $form = HTML::FormFu->new;<br>
$form->load_config_file('uw1.yml');<br>
$form->process;<br><br>
my $tt = Template->new;<br>
$tt->process(<br>
'uw1.tt',<br>
{ form => $form },<br>
'uw1.html',<br>
) || die $tt->error;<br><br>
</tt>I can feed bad values in, or leave some required values missing, and
generally try out lots of combinations of errors, all without much
coding. Just being lazy...<br>
</body>
</html>