Skip to content
Snippets Groups Projects
Commit 328d4946 authored by Mitchell Wright's avatar Mitchell Wright
Browse files

Fix confirmation on eep demo page

parent 4c50bc9c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -27,25 +27,11 @@ extra_css:
%form#mktoForm_1419
:javascript
MktoForms2.loadForm("//app-ab13.marketo.com", "194-VVC-221", 1419, function(form) {
form.onSuccess(function(values, followUpUrl) {
form.getFormElem().hide();
document.getElementById('confirmform').style.visibility = 'visible';
dataLayer.push({event: 'mktoLead',mktoFormId: form.getId()});
return false;
});
function getgacid() {
try {
var tracker = ga.getAll()[0];
return tracker.get('clientId');
} catch (e) {
return 'n/a';
}
}
form.vals({
'gacid': getgacid()
});
form.onSuccess(function() {
form.getFormElem().hide();
$('.confirmform').attr('style', 'visibility: visible');
return false;
});
});
.confirmform{style: "visibility:hidden;"}
.centered-form-info
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment