In fact, this works and it just what I wanted (my back button is to go to a 
preceding step in a form)

button_list = [TAG.button('Back',_type="button",_onClick = 
"parent.location='%s' 
" %URL(vars={'login_id':login_id,'step':step-1,'submitted_id':patient_id},
hmac_key=KEY + valid_code) )
                               ,TAG.button('Next',_type="submit")]



and

SQLFORM(..... buttons = button_list)

so it works just like the book said :) I just needed to learn about 
TAG.button 


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to