the code above is supposed to submit 2 forms using one submit button and populate the values in respective Marketo fileds. However, it’s intermittent and doesn’t always work… It runs off the back of the Marketo forms2 API. Does anything particular stand out to you about it?
Thanks!
var lpFields = {"lpId":14586,"subId":117,"munchkinId":"217-ZRF-245","lpurl":"//pages.fitbit.com/HP-Referral-Submit.html?cr={creative}&kw={keyword}","followupLpId":14560};
var pageFields = MktoForms2.getPageFields();
form.addHiddenFields(lpFields);
form.addHiddenFields(pageFields);
if(window.mktoPreFillFields){
form.setValuesCoerced(mktoPreFillFields);
}
if(!form.EnableDeferredMode){
form.render();
}
});
})();