<html>
<body>
Still playing with the vertically-aligned example and trying out various
features, including the validation constraints and error messages.&nbsp;
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.&nbsp; At the end of my FormFu .yml I added <br><br>
<tt>query:<br>
&nbsp;&nbsp;&nbsp; contact_phone: testing<br>
&nbsp;&nbsp;&nbsp; contact_email: tshinnic@gmail.com<br><br>
</tt>to set the form's 'input' values.<br><br>
I had tried to use the &quot;process:&quot; key as documented, but
because the config loading is still going on process() really can't, uh,
process yet.&nbsp; So to force 'input' processing to test constraints and
all, I simply added a process() call to the short demo program.<br>
<tt>&nbsp;&nbsp;&nbsp; my $form = HTML::FormFu-&gt;new;<br>
&nbsp;&nbsp;&nbsp; $form-&gt;load_config_file('uw1.yml');<br>
&nbsp;&nbsp;&nbsp; $form-&gt;process;<br><br>
&nbsp;&nbsp;&nbsp; my $tt = Template-&gt;new;<br>
&nbsp;&nbsp;&nbsp; $tt-&gt;process(<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'uw1.tt',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { form =&gt; $form },<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'uw1.html',<br>
&nbsp;&nbsp;&nbsp; ) || die $tt-&gt;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.&nbsp; Just being lazy...<br>
</body>
</html>