You cannot modify a form and then use a custom form. You need to add the button in the custom form.
{{=form.custom.begin}} {{=form.custom.widget.email}} {{=form.custom.submit}} <INPUT type="button" ... /> {{=form.custom.end}} On Aug 10, 8:28 am, Dutch opera <dutchop...@gmail.com> wrote: > Hi, > > I=have the form > > form=auth.retrieve_password() > form[0][-1][1].append(INPUT > (_type='button',_value='Cancel',_onclick="window.location='%s';"%URL > (r=request,f='login'))) > > In my view,,, > > I want to do this > > {{=form.custom.begin}} > {{=form.custom.widget.email}} > {{=form.custom.submit}} > {{=form.custom.end}} > > what is the custom widget for the cancel button? Cant get it to > work... > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---