On Friday, January 28, 2011 9:15:20 PM UTC-5, rochacbruno wrote: > > 2011/1/28 Anthony <[email protected]> > >> Altering forms via server-side DOM manipulations should be documented in >> the book. It seems to come up a lot, but I don't think it's all that obvious >> or explicit in the book. The Views chapter (ch. 5) discusses HTML helpers >> and server-side DOM generally, but I don't think there's any discussion of >> using these methods specifically to customize forms (because FORM and >> SQLFORM are discussed in ch. 7, it's not immediately obvious that they are >> also HTML helper objects and can therefore be manipulated in the same way). >> Examples of this probably belong in the "Custom forms" section ( >> http://web2py.com/book/default/chapter/07#Custom-forms), or somewhere in >> ch. 7. >> >> > Yes, the only place I see this is in chapter #5 > http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing > I agree with you, and I think we need some explaination about using DOM to > forms manipulation. > > I dont know if there are any other caveats about it, I did not try the > validation but I think it should work very well. > Chapter 7 alludes to it in the intro but never follows up:
"Arbitrary HTML code can be inserted into or extracted from the form using helpers." There's also this slice: http://www.web2pyslices.com/main/slices/take_slice/43 Anthony

