On Apr 19, 7:19 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > 3) To a form created with SQLFORM I want to add a new field, not > > belonging to the table. It is a necessary field to validate, similar > > to use captchas, but with text. > > Is it possible to do what I need? > if form is your form... > form[0] is the <table>...</table> > so you can do > form[0].append(TR('label',INPUT > (_name='youvarname',requires=IS_NOT_EMPTY()),'')) > To insert the field in the form. Or you just use a custom field.
Lovely :) No way to do the same with adding an extra column to a SQLTABLE, is there? ;) SQLTABLE doesn't even have a 'col3' (comment) to play with... F --~--~---------~--~----~------------~-------~--~----~ 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 web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---