Finally I found the time to look into Bill's patch for custom forms. I like the idea a lot but for a number of reasons, independently on this patch, I had to change/improve the source code of gluon/html.py.
I made lots of small changes for gluon/html.py! I put the patch-in compatibly with the latest changes. This means if something is messed up it is my fault, not Bill's fault. 1) Please test that your existing forms (FORM, SQLFORM) work with the latest trunk (mdipierro/devel). 2) custom forms now work like this: <form> <input name="field" value="{{=form.latest.field}}" /> {{if form.errors.field:}}<div class="error">{{=form.errors.field}}<div>{{pass}} <input type="submit" /> <!-- insert hidden fields to avoid double-submission! //--> {{for field in form.hidden_fields():}}{{=field}}{{pass}} </form> Bill, can you please test that it works well with SELECT, TEXTAREAs, checkboxes and radioboxes? Massimo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---