hi,

i've test the form validators() is not work when using form(). even if i 
set it on models is not work too. when using crud() and sqlform() the 
requires is work when i define it in models. did anyone know about it?

thank you a lot before.

*example:*
<form action="" enctype="multipart/form-data" method="post">
<table width="100%">
<tr>
    <th>Test 1</th>
    <th>Test 2</th>
</tr>
<tr>
    <td>
*        <input id="a" name="a" type="text" value="" size="3" {{requires = 
IS_NOT_EMPTY(error_message='cannot be empty!')}} />*
    </td>
    <td>
*        {{=INPUT(_name="b", requires=IS_INT_IN_RANGE(0, 10) ) }}*
    </td>
</tr>
<tr>
    <td><input type="submit" value="Submit" />
  <input type="hidden" name="_formname" value="sale" /></td>
</tr>
</table>
  
</form>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to