Skip to content
Snippets Groups Projects
Commit 65209312 authored by Joe Scheuermann's avatar Joe Scheuermann
Browse files

Merge branch 'fix-sales-form' into 'master'

fixed the showing of form confirmation

See merge request gitlab-com/www-gitlab-com!9109
parents 69533895 cee2b0c5
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