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

fixed the showing of form confirmation

parent 4c50bc9c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -27,25 +27,11 @@ extra_js:
%form#mktoForm_1415
:javascript
MktoForms2.loadForm("//app-ab13.marketo.com", "194-VVC-221", 1415, function(form) {
form.onSuccess(function(values, followUpUrl) {
form.onSuccess(function() {
form.getFormElem().hide();
document.getElementById('confirmform').style.visibility = 'visible';
dataLayer.push({event: 'mktoLead', mktoFormId: form.getId()});
$('.confirmform').attr('style', 'visibility: visible');
return false;
});
function getgacid() {
try {
var tracker = ga.getAll()[0];
return tracker.get('clientId');
} catch (e) {
return 'n/a';
}
}
form.vals({
'gacid': getgacid()
});
});
.confirmform{style: "visibility:hidden;"}
%h3 Submission received!
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