How to embed a contact form on Wix
Wix has a Custom Element built for exactly this. Give it two values — a script URL and a tag name — and publish.
<script src="https://cdn.toimii.io/components/your-code.js" async></script>
<toimii-your-code></toimii-your-code>
Step by step
Gotchas
Frequently asked
What does "sandboxed iframe" mean?
An iframe is a separate document nested inside your page, and the sandbox attribute limits what that document may do. Wix's developer documentation says its HTML embed creates a sandboxed environment that does not have direct access to the other elements on your page.
Can I use the HTML embed element instead?
No — it looks similar in the editor but it's a different element, and everything pasted into it runs inside that sandboxed iframe. Paste just the tag and nothing renders. Paste both lines and a form may appear in the box, but it's running on a Wix-hosted document rather than your own domain, and submissions are checked against your site's domain — so they're refused, and the visitor gets only a generic error.
What about Velo (Wix Dev Mode)?
You don't need it. The Custom Element is a standard editor element, and Velo doesn't change how the HTML embed's iframe behaves, so it isn't a way around that either.
Why doesn't the form look right in the Wix Editor?
Because Wix renders custom elements inside an iframe in the Editor and in preview mode. A blank or oddly-sized box on the canvas tells you nothing either way. Publish and check the live URL — that's the only view that matches what a visitor sees.
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.