Behavior of the two is similar. However, use SQLFORM.factory when there is no real model db behind the form. With SQLFORM.factory you build the fields into the form in your controller and then pass it to the view for rendering same as if it were an SQLFORM. Except that the SQLFORM.factory fields don't connect to any db model. Rather, they are fields that you would access via form.vars.fielname after acceptance. Fields declared within an SQLFORM.factory form can have validators and behave just the same as fields defined in a model file.
On Sep 12, 2:19 pm, Thadeus Burgess <[email protected]> wrote: > What is the difference between SQLFORM and SQLFORM.factory? > > -Thadeus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

