Created
August 15, 2024 19:53
-
-
Save ericakfranz/dbb555529102093f90377e9aedffdcd1 to your computer and use it in GitHub Desktop.
OM Custom SharpSpring form example
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
<div id="ss-form-target-{{id}}"></div> | |
<script type="text/javascript"> | |
(function(){ | |
window.ss_form = {'account': 'XXXXXXXXXXXXXXX', 'formID': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'}; | |
ss_form.width = '100%'; | |
ss_form.height = '1000'; | |
ss_form.domain = 'app-XXXXXXXXX.marketingautomation.services'; | |
ss_form.target_id = 'ss-form-target-{{id}}'; // Optional parameter: forms will be placed inside the element with the specified id | |
// ss_form.hidden = {'field_id': 'value'}; // Modify this for sending hidden variables, or overriding values | |
// ss_form.polling = true; // Optional parameter: set to true ONLY if your page loads dynamically and the id needs to be polled continually. | |
var script = document.createElement('script'); | |
script.type='text/javascript'; | |
script.src='https://XXX-XXXXXXXXX.marketingautomation.services/client/form.js?ver=2.0.1'; | |
script.async=true; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
})(document); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment