This is what I do to make the "Clear" button reset the visitor properly
// Use jQuery via $jQ(...)
var $jQ = jQuery.noConflict();
$jQ(document).ready(function(){
// If Clear is clicked remove Marketo cookies, prefill, etc.
$jQ( "#mktFrmReset" ).click(function() {
$jQ("#_mkt_trk").val('');
mktoPreFillFields = {};
$jQ(".lpeRegForm")[0].reset();
document.cookie = '_mkto_trk=NULL; expires=-1; path=/; domain=.citrix.com';
});
});
I have not tested this on pages with forms from the Forms 2.0 editor, only on pages with the original forms editor.