I have defined a model in which some fields were marked as "IS_NOT_EMPTY", 
now when I am using SQLFORM generated form, then if a user clicked on 
"submit", then if that particular field is empty, it shows a message in red 
color indicating which field is having empty value.

Now since my requirement wants me to use custom sqlform, I am using it like 

{{extend 'layout.html'}}
<form>
<ul>
<li>Customer Name<input name="name" /></li>
</ul>
<input type="submit" />
<input type="hidden" name="_formname" value="test" />
</form>

Now if the name field is empty, it do not highlight the name field and 
tells there is a missing value.

Can some one please guide me on how to achieve this using custom sqlform.

-- 

--- 
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