Hi all,
Form Check 1.4.2 seems to have issues checking for a minimum digit
value. I have the following form with one input field that checks that
input is between 1 and 5 :
<form id="formular" class="formular" method="get" action="#">
 Check Number: <input type="text" name="numCheck" class="validate
['required','digit[1,5]']" type=text"
<br>
<input name="Submit" class="submit" type="submit" value="Validate">
Validation works fine on this example.

However the following form that checks only for a minimum value of 1
fails:
<form id="formular" class="formular" method="get" action="#">
 Check Number: <input type="text" name="numCheck" class="validate
['required','digit[1,-1]']" type=text"
<br>
<input name="Submit" class="submit" type="submit" value="Validate">

with the following firebug error:
this.options.alerts.digitmin is undefined

And sure enough under 'alerts' in the 'options' variable in
formcheck.js, 'digitmin' is not defined. All was well once I added:
digitmin: "The number must be at least %0"

Has anyone else run into this, or am I doing something wrong?
-deech

Reply via email to