You might want to look at this thread... http://groups.google.co.nz/group/web2py/browse_thread/thread/405c0bcfc6a2df2f
It shows how you can have several "submit" buttons and then use your controller to dynamically determine the specific redirect. On Apr 25, 6:24 pm, jmverm...@xs4all.nl wrote: > Denes, > > > About the asterisks in col3, you have to use your form's field names > > as in: > > col3=dict(initialen='*', naam='*', ...) > > form[0][-1][1].append(INPUT(_type='reset',_value='Reset')) > > form[0][-1][1].append(INPUT(_type='button',_value='Cancel')) > > This all works. The form[0][-1][1] code is much neater than mine. > > About the _onclick attribute: > > form[0][-1][1].append(INPUT > (_type='button',_value='Cancel',_onclick='javascript:location > ('%s')'%URL(r=request,f='...')) > is all that springs to mind, how do I reference the previous page, > which, as I said , is not in every case the same page. > > > See this recent > > thread:http://groups.google.com/group/web2py/browse_thread/thread/ec7d941c8d... > > This link appears to be broken ... > > Annet. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---