Grab Marketo Form in Liferay for Drift
Hello,
We are trying to add a Marketo Form to our landing page that is using Liferay for a Drift fastlane integration.
I am not sure how to grab a Marketo form outside of Marketo. I have the instance and form ID, would it just be as simple as pasting a script in the Liferay html?
I have added sample code with different values below on how we are trying to grab the form.
<!-- Drift -->
<script>
MktoForms2.loadForm("//website.com", "658-grs-4469", 3267, function (form) {
form.onSuccess(function (values) {
drift.api.collectFormData(values, {
campaignId: 5624457, // Drift playbook's campaign id!
followupUrl: 'website.com'
});
return false;
});
});
</script>
Thanks,
Oscar