Created
June 2, 2022 13:58
-
-
Save robertbiswas/2062012a15115189a7541e6b7a6bcba6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/v2.js"></script> | |
<script> | |
hbspt.forms.create({ | |
region: "na1", | |
portalId: "XXXXXX", | |
formId: "XXXXX-XXXXXX-XXXXX-CCCC", | |
onFormSubmit: function($form){ | |
setTimeout(function () { | |
var firstName = $form.find('input[name="firstname"').val(); | |
var lastName = $form.find('input[name="lastname"').val(); | |
var email = $form.find('input[name="email"').val(); | |
window.location = "https://robertbiswas.com?firstname=" + firstName + "&lastname=" +lastName + "&email=" +email; | |
}, 200); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment