Docs • Platform Guide

Using Web2Phone with Wix

Add a working contact form to your Wix website — no backend code required. Web2Phone sends submissions instantly to WhatsApp and email.

For a broader overview, read the Contact Form to WhatsApp guide. For other platforms and general setup, see the Getting Started page.

Step 1

Create Your Form in Web2Phone

  1. Log in to your Web2Phone dashboard.
  2. Go to FormsCreate Form.
  3. Set up your fields (name, email, phone, message, etc.).
  4. In Allowed Domains, enter only the hostname of your live site. Examples:
    • example.com (custom domain)
    • yourname.wixsite.com (free Wix URL)
  5. Save the form and copy your full Embed Snippet.
💡

Copy the hostname from the live URL

Open your live Wix site in a new tab and look at the address bar. Copy only the hostname part into Allowed Domains. (No https://, no paths like /contact.)

Step 2

Add the Form to Your Wix Site

In Wix, add the form using an Embed element and paste the full HTML + script snippet.

Steps

  1. Open your site in the Wix editor.
  2. Click Add (+)Embed Code.
  3. Select an option that lets you paste HTML (not just a URL).
  4. Paste the full Web2Phone embed snippet from your dashboard.
ℹ️

Example snippet

Your real snippet will include your public key and the correct endpoint. Example:

<form data-web2phone="form"
  data-public-key="YOUR_PUBLIC_KEY"
  data-endpoint="https://web2phone.co.uk/api/v1/submit/">

  <input name="name" placeholder="Your name" required>
  <input name="email" type="email" placeholder="[email protected]" required>
  <textarea name="message" placeholder="Message" required></textarea>

  <button type="submit">Send</button>
  <p data-w2p-output></p>

</form>

<script src="https://web2phone.co.uk/static/formsapp/js/embed.js"></script>

Resize the embed box so the whole form is visible on your page.

⚠️

Wix iframe note

Some Wix embed options render HTML inside an iframe. In that case, the browser may send an iframe origin/referrer hostname instead of your site hostname, which can trigger “Domain not allowed”. If that happens, use a Wix embed option that runs on the page itself (or use Wix Custom Code / Velo).

Step 3

Publish and Test

  1. Click Publish in the Wix editor.
  2. Open your live site (not preview mode).
  3. Submit a test message.
  4. You should receive:
    • ✔ An instant WhatsApp message (if enabled)
    • ✔ A backup email
    • ✔ A success message under the form
🧯

If it doesn’t work

  • Confirm the hostname in Allowed Domains matches the live URL you’re testing.
  • Make sure you pasted the full snippet (including the <script> tag).
  • Confirm the snippet is from the correct form (public key mismatch = wrong destination).
  • Use the Troubleshooting guide for the full checklist.