Hi Richard, Thanks for your reply and providing me with the link. This does exactly what I want:
form.element('input[type=submit]',replace=lambda button: CAT(button, INPUT(_class="btn",_type="reset",_value="Reset"), INPUT(_class="btn",_type="button",_value="Cancel",_onclick="javascript:history.go(-1);"))) Kind regards, Annet --