<div dir="ltr">Thanks will check out data transpose.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-06 19:03 GMT-05:00 Sam Batschelet <span dir="ltr"><<a href="mailto:sbatschelet@mac.com" target="_blank">sbatschelet@mac.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Aug 6, 2015, at 1:12 PM, Richard Reina <<a href="mailto:gatorreina@gmail.com">gatorreina@gmail.com</a>> wrote:<br>
><br>
> I am trying to do some basic field validation with Dancer-Plugin-FormValidator. So far I like it but I am a bit confused as to how to write rules in the profile file.<br>
><br>
> This for example works great for telling me that the required fields are filled out:<br>
><br>
>  profile_sponsor => {<br>
>              'required' => [ qw(<br>
>                  FName LName Email<br>
>               )],<br>
>               msgs => {<br>
>                 missing => 'is missing. Go back and try again.',<br>
>               }<br>
>          },<br>
><br>
><br>
> But I would like to be able to run some simple checks. Like whether a new users two passwords match and whether, email field contains an email address, and a password choice is long enough, etc. Can this be done easily with this plugin and if so can anyone give some examples?<br>
<br>
</span>I like Data::Transpose for form validation it has a lot of good stuff including password policy email format validation. <a href="http://search.cpan.org/dist/Data-Transpose/" rel="noreferrer" target="_blank">http://search.cpan.org/dist/Data-Transpose/</a> some decent examples in the POD.  Let me know if you have any questions.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Sam<br>
</font></span><br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>