Created
August 28, 2024 22:10
-
-
Save kevincolten/4ca569ab64113715e10db8f40394fa51 to your computer and use it in GitHub Desktop.
Hubspot Forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script> | |
<script> | |
hbspt.forms.create({ | |
region: "na1", | |
portalId: "24084423", | |
formId: "6a3edefc-d6eb-4eec-a23c-8a39d5ac65df", | |
onFormReady: async ($form) => { | |
const recaptcha = $form.querySelector('.hs-recaptcha'); | |
if (recaptcha) recaptcha.style.display = "none"; | |
$form.insertAdjacentHTML('beforebegin', ` | |
<style> | |
/* Insert Custom Style Here */ | |
</style> | |
`); | |
} | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script> | |
<script> | |
hbspt.forms.create({ | |
region: "na1", | |
portalId: "24084423", | |
formId: "f1e04d78-5658-4fb5-8f3f-6fb3563c6d37", | |
onFormReady: async ($form) => { | |
const recaptcha = $form.querySelector('.hs-recaptcha'); | |
if (recaptcha) recaptcha.style.display = "none"; | |
$form.insertAdjacentHTML('beforebegin', ` | |
<style> | |
/* Insert Custom Style Here */ | |
</style> | |
`); | |
const $consent = $form.querySelector('.legal-consent-container'); | |
const $submit = $form.querySelector('.hs_submit'); | |
$submit.parentNode.insertBefore($submit, $consent); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment