Webflow Integration
Webflow Contact Form Integration
Collect form submissions from your Webflow site using Forms in minutes. Use Webflow's built-in form designer and paste your unique Forms mockapi in the custom code for submissions.
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 Webflow?
Webflow is a no-code website builder that allows you to visually design websites and manage content. You can embed custom code snippets for advanced functionality such as submitting forms to external services like Forms.
Forms Setup in Webflow with Fetch
Use the native Fetch API within a