Fixed forms in dupAndEdit and edit() for compatibility with ajaxselect widgets