Wix Integration
Wix Contact Form Integration
Collect form submissions from your Wix site using Forms. Use Wix’s HTML embed or Velo to connect forms to Forms endpoints quickly.
VS Code
Email:
Message:
Send
Form submitted successfully!
async function handleSubmit(event) {
event.preventDefault();
const form = event.target;
const email = form.email.value;
const message = form.message.value;
const successEl = document.getElementById('success-message');
const errorEl = document.getElementById('error-message');
successEl.style.display = 'none';
errorEl.style.display = 'none';
try {
const res = await fetch('https://submit.zunoy.com/sub/[YOUR-FORM-KEY]', {
method: 'POST',
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
body: JSON.stringify({ email, message })
});
const data = await res.json();
if (data.code === 200) successEl.style.display = 'block';
else {
errorEl.textContent = data.message || 'Something went wrong';
errorEl.style.display = 'block';
}
} catch (err) {
errorEl.textContent = err.message;
errorEl.style.display = 'block';
}
}How to Integrate Code
What is Wix?
Wix is a no-code website builder that allows you to create websites using drag-and-drop tools. You can use HTML embeds or Velo (Wix Code) to add custom forms and integrate with external services like Forms.
Forms Setup in Wix with Fetch
Use the Fetch API inside a