Embed forms on your website
How to embed an eMarketeer form on your website using the Form Base Script and configure its behavior after submission.
Last updated
Was this helpful?
Was this helpful?
<script>em_cta.render("SCRIPT-ID",{ fullPage: true, locale: "en" });</script><script>
em_cta.render("SCRIPT-ID",{ fullPage: true, locale: "en" });
em_cta.setValue('question1', 'My value');
em_cta.setValue('toggle1', 'true');
em_cta.setValue('checkboxes1', ['Item 1', 'Item 2'])
</script>em_cta.injectInlineStyle(':host, :host * { color: red !important; font-family: "Comic Sans MS", "Comic Sans", cursive !important; } .sd-btn { background-color: black !important; } .sd-element--with-frame { border-radius: 30px; }')
em_cta.injectExternalStyle('https://yourdomain.com/example.css')<script>em_cta.render("SCRIPT-ID",{ fullPage: true, locale: "en", useShadowDom: false});</script><script>
em_cta.getSurvey().then(survey => {
survey.onComplete.add(() => {
console.log('Survey completed');
})
})
</script>