SecurSpace | AGS
pageName: "SecurSpace | AGS",
inlineMessage: "Thanks for submitting the form.",
rawInlineMessage: "Thanks for submitting the form.",
hsFormKey: "619e38f834ace896b2ce1fce7d0e7a8f",
deactivateSmartForm: true,
css: '',
target: '#hs_form_target_main_content-dnd_partial-1-module-5',
contentType: "landing-page",
useDraft: "true",
formData: {
cssClass: 'hs-form stacked hs-custom-form'
}
};
options.getExtraMetaDataBeforeSubmit = function() {
var metadata = {};
if (hbspt.targetedContentMetadata) {
var count = hbspt.targetedContentMetadata.length;
var targetedContentData = [];
for (var i = 0; i < count; i++) {
var tc = hbspt.targetedContentMetadata[i];
if ( tc.length !== 3) {
continue;
}
targetedContentData.push({
definitionId: tc[0],
criterionId: tc[1],
smartTypeId: tc[2]
});
}
metadata["targetedContentMetadata"] = JSON.stringify(targetedContentData);
}
return metadata;
};
hbspt.forms.create(options);