Commit fd1d6652 authored by Brandon Lyon's avatar Brandon Lyon 💬

Resolve "Add setoptions to Marketo forms"

parent 29779565
......@@ -54,6 +54,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1073
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1073, function(form) {
form.onSuccess(function(values, followUpUrl) {
dataLayer.push(
......
......@@ -40,6 +40,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1073
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1073, function(form) {
form.onSuccess(function(values, followUpUrl) {
dataLayer.push(
......@@ -76,6 +80,10 @@ extra_css:
%h4 🔒 Sign up for security notices
%form#mktoForm_1102
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1102, function(form) {
form.onSuccess(function(values, followUpUrl) {
dataLayer.push(
......
......@@ -398,6 +398,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_2460
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 2460, function(form) {
form.onSuccess(function(values, followUpUrl) {
dataLayer.push(
......@@ -466,6 +470,10 @@ extra_css:
- localvar_form_type = 'resources'
%form{id: "mktoForm_#{localvar_form_id}"}
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", #{localvar_form_id}, function(form)
{
form.onSuccess(function()
......
......@@ -21,6 +21,10 @@ extra_js:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1364
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1364, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -43,6 +43,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1754
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1754, function(form) {
// Please include the email domains you would like to block in this list
var invalidDomains = ["@qq.","@163.","@126."];
......
......@@ -137,6 +137,10 @@ extra_js:
%a.download-button{href: "https://www.surveymonkey.com/results/SM-8LLKL2N87", target:"_blank"}
= "2019 Global Developer Survey raw data"
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1002, function(form) {
form.onSuccess(function()
{
......
......@@ -32,6 +32,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1591
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1591, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -39,6 +39,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1591
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1591, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -40,6 +40,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1691
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1691, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -42,6 +42,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1691
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1691, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -46,6 +46,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1691
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1691, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -46,6 +46,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1702
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1702, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -25,6 +25,10 @@
// form.getFormElem().hide();
};
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
// adapted from https://codepen.io/figureone/pen/ayKadR?editors=0010
var mktoFormConfig = {
podId : "//page.gitlab.com",
......
......@@ -25,6 +25,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_2150
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 2150, function(form) {
//
if(typeof(Demandbase) === "object"){
......
......@@ -25,6 +25,10 @@
%script{src:"//page.gitlab.com/js/forms2/js/forms2.min.js"}
%script{:type=>"text/javascript"}
:plain
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", #{form_id}, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -4,4 +4,8 @@
%script{ src: "//page.gitlab.com/js/forms2/js/forms2.min.js", type: "text/javascript", charset: "utf-8" }
%form#mktoForm_2064
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 2064);
\ No newline at end of file
......@@ -12,6 +12,10 @@
%form#mktoForm_2425.u-margin-top-xs
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 2425, function(form)
{
......
......@@ -164,6 +164,10 @@
});
};
};
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
function mktoFormChain(config)
{
/* util */
......
......@@ -70,6 +70,10 @@
:javascript
var consoleLogsEnable = new Boolean(false);
var formNumber = #{localvar_form_id || 'null'};
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", #{localvar_form_id}, function(form)
{
var destinationUrlId = $('#destination-url');
......
......@@ -9,6 +9,10 @@
<script>
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1077, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -27,7 +27,10 @@
<form id="mktoForm_1077"></form>
<script>
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1077, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -9,6 +9,10 @@
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1411
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1411, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -12,6 +12,10 @@
%form{id: "mktoForm_#{formid}"}
:javascript
var formNumber = #{formid || 'null'};
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", formNumber, function(form) {
form.onSuccess(function() {
dataLayer.push(
......
......@@ -30,6 +30,10 @@
return validParams;
};
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm('//page.gitlab.com', '194-VVC-221', 1318, function(form) {
form.onSuccess(function(values, followUpUrl) {
dataLayer.push(
......
......@@ -46,6 +46,10 @@
%form{id: "mktoForm_#{event.form.number}"}
:javascript
var formNumber = #{event.form.number || 'null'};
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", formNumber, function(form) {
//
if(typeof(Demandbase) === "object"){
......
......@@ -23,6 +23,10 @@
%form{id: "mktoForm_#{form.form.number}"}
:javascript
var formNumber = #{form.form.number || "null"};
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", formNumber, function(form) {
form.onSuccess(function() {
......
......@@ -27,6 +27,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_2066
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 2066, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -31,6 +31,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_2078
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 2078, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -24,6 +24,10 @@ extra_js:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1988
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1988, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -37,6 +37,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1002
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1002, function(form) {
form.onSuccess(function() {
......
......@@ -31,6 +31,10 @@ extra_js:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1415
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1415, function(form) {
//
if(typeof(Demandbase) === "object"){
......
......@@ -71,6 +71,10 @@ extra_js:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -52,6 +52,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -54,6 +54,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -53,6 +53,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -51,6 +51,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -47,6 +47,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -50,6 +50,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -43,6 +43,10 @@ extra_js:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -52,6 +52,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -41,6 +41,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -56,6 +56,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -59,6 +59,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -103,6 +103,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -131,6 +131,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -43,6 +43,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1476
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1476, function(form) {
form.onSuccess(function(values, followUpUrl) {
......
......@@ -63,6 +63,10 @@ extra_js:
%script{ src: "//page.gitlab.com/js/forms2/js/forms2.min.js" }
%form#mktoForm_1659
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1659, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -74,6 +74,10 @@ extra_css:
<script src="//page.gitlab.com/js/forms2/js/forms2.min.js"></script>
<form action="" id="mktoForm_1675"></form>
<script>
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1675, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -57,6 +57,10 @@ extra_js:
%script{ src: "//page.gitlab.com/js/forms2/js/forms2.min.js" }
%form#mktoForm_2154
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 2154, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -49,6 +49,10 @@ extra_css:
%script{src: "//page.gitlab.com/js/forms2/js/forms2.min.js"}
%form#mktoForm_1592
:javascript
MktoForms2.setOptions(
{
formXDPath : "/rs/194-VVC-221/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//page.gitlab.com", "194-VVC-221", 1592, function(form) {
form.onSuccess(function() {
form.getFormElem().hide();
......
......@@ -69,6 +69,10 @@ extra_css:
<form id="mktoForm_<%= release_radar.form %>"></form>
<script type="text/javascript">