Home / Admin / OM Custom SharpSpring form example
Duplicate Snippet

Embed Snippet on Your Site

OM Custom SharpSpring form example

Code Preview
universal
<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>

Comments

Add a Comment