Great!. Thank you all for the clarification. I will then re-write my code to have SQLFORM or SQLFORM.factory to later be able to inject html into the form. Really appreciate the help . I can now move forward!.
Regards, Bhaskar On Tuesday, December 25, 2012 9:43:52 AM UTC-6, Anthony wrote: > > > But what about the DOM objects like radio buttons, text area etc in the >> html ?. When the view file is processed and the response object is working >> on it to generate pure HTML , won't it create a DOM tree structure in >> memory. ?. >> > > No, if you just hand code the form HTML in the view but never create a > FORM or SQLFORM object, you don't get any server-side DOM. The server-side > DOM comes only with the use of the HTML helpers. If you want to take > advantage of the FORM DOM on the server but still want to customize your > HTML, check out http://web2py.com/books/default/chapter/29/07#Custom-forms > . > > There are also other benefits of using FORM and SQLFORM in the controller > -- they automatically validate user inputs and return and display error > messages upon invalid input, and they add a special "formkey" token to the > form to prevent CSRF attacks and double form submission. > > Anthony > --

