How to embed a contact form on Wix (honest guide for 2026)
Wix's Embed widget runs in a sandboxed iframe — so a single paste won't work. Here's the split method that does.
<script src="https://cdn.toimii.io/components/your-code.js" async></script>
<toimii-contact></toimii-contact>
Step by step
Common gotchas
Frequently asked
What does "sandboxed iframe" mean?
A sandboxed iframe is an iframe with the sandbox attribute, which restricts what the inner content can do. In December 2025, Wix removed allow-same-origin from the Embed widget sandbox. The script still loads, but the custom element registers inside the iframe — not on your Wix page. That's why a single embed block doesn't work; we have to split it.
Why doesn't "Embed HTML" work like it used to?
Both run in the same sandboxed iframe (since Wix tightened security in December 2025 by removing allow-same-origin). The script loads, but the custom element registers in the iframe — not on your parent page. That's why we recommend the split method instead.
Wait — does the split method actually work?
Yes. The script tag goes in Settings → Custom Code (head or body) — that's a parent-page injection, not an iframe. The custom element
What about Velo (Wix Dev Mode)?
Velo (Wix Dev Mode) gives you backend code and frontend events — but the rendering surface for HTML is still the same Embed widget iframe. Velo doesn't lift the sandbox; it just gives you a way to script around it. For most users, the split method is simpler.
Should I just switch to a different platform?
Honestly, if you're picking a no-code site builder right now, Squarespace, Webflow, and WordPress.com all support our embed more cleanly than Wix. We don't say that lightly — we'd rather you have a smooth experience than struggle with a sandbox.
Embedding on a different platform?
Same two lines of code, picked apart for each platform.
Ready to try it?
30-day free trial. No credit card. Set up in minutes.
No credit card required. Set up in 2 minutes.