hello, I am using the col3 argument to SQLFORM to add some data: button = INPUT(_type='button', _value='test') link = A('test', _href=URL(r=request, f='test')) col3 = dict(name=button, project=link) form = SQLFORM(db.model, col3=col3)
Strangely this works for links but not inputs. Inputs are not included in the form - is there a reason for this? I am trying to add a button to the form. For now I am using the form[0][0][2].append(...) syntax but would prefer to use the cleaner col3 argument. Incidentally, could a HTML helper be added for BUTTON()? The CSS file I use assumes I am using <button> rather than <input type='button'>. thanks, Richard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---