To install a Form on your website using the Standard widget use the follwing code snippet:
<script type="module">
import Form from 'https://cdn.mu.chat/embeds/dist/form/index.js';
Form.initStandard({
formId: 'YOUR_FORM_ID',
});
</script>
<muchat-form-standard />
<script type="module">
import Form from 'https://cdn.mu.chat/embeds/dist/form/index.js';
Form.initStandard({
formId: 'YOUR_FORM_ID',
});
</script>
<muchat-form-standard />
<script
id="muchat-form"
type="module"
dangerouslySetInnerHTML={{
__html: `import Form from 'https://cdn.mu.chat/embeds/dist/form/index.js';
Form.initStandard({
formId: 'cm50yd89m016n01ppbrptaixj',
});`
}}
/>
<muchat-form-standard style={{ width: '100%', height: '650px' }} />
Replace YOUR_FORM_ID
with the ID of your Form
You can find the Form ID in the Form settings under the Settings tab.
See all the available attributes in the Form Reference