Zunoy header logo
Webflow Integration

Webflow Contact Form Integration

Collect form submissions from your Webflow site using FormAPI in minutes. Use Webflow's built-in form designer and paste your unique FormAPI endpoint in the custom code for submissions.

VS Code
<form id="formapi-webflow" onsubmit="handleSubmit(event)">
  <label>Email:</label>
  <input type="email" name="email" required />

  <label>Message:</label>
  <textarea name="message" required></textarea>

  <button type="submit">Send</button>
</form>
<p id="success-message" style="color:green; display:none">Form submitted successfully!</p>
<p id="error-message" style="color:red; display:none"></p>

<script>
  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';
    }
  }
</script>

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 FormAPI.

FormAPI Setup in Webflow with Fetch

Use the native Fetch API within a <script> tag in Webflow to submit forms. Replace “https://submit.zunoy.com/sub/[YOUR-FORM-KEY]” with your unique endpoint URL.

Vs Code
<script>
  async function handleSubmit(event) {
    event.preventDefault();
    const form = event.target;
    const email = form.email.value;
    const message = form.message.value;
    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) alert('Form submitted successfully!');
      else alert(data.message || 'Something went wrong');
    } catch (err) {
      alert(err.message);
    }
  }
</script>

FormAPI Setup in Webflow with File Uploads

Use native file input and FormData in Webflow to handle file uploads. Replace the endpoint with your FormAPI URL.

Vs Code
<script>
  async function handleSubmit(event) {
    event.preventDefault();
    const form = event.target;
    const email = form.email.value;
    const file = form.file.files[0];
    if (!file) return alert('Please select a file');

    const formData = new FormData();
    formData.append('email', email);
    formData.append('file', file);

    try {
      const res = await fetch('https://submit.zunoy.com/sub/[YOUR-FORM-KEY]', {
        method: 'POST',
        body: formData
      });
      const data = await res.json();
      if (data.code === 200) alert('Form submitted successfully!');
      else alert(data.message || 'Something went wrong');
    } catch (err) {
      alert(err.message);
    }
  }
</script>

Set Up Forms Checks in 60 Seconds

1

Choose HTTPS Monitor

Select HTTPS monitoring to track website uptime, SSL expiry, redirects, and response codes from global locations.

2

Enter Site URL & Options

Type your website URL, add optional headers or auth tokens, then pick the check interval you prefer.

3

Activate & Get Instant Status

We run the first check instantly and alert on downtime, SSL errors, or failed HTTPS responses.

USe CAses

Need templates? Say less.

A collection of example HTML forms with code that you can edit live, then download or copy/paste. A minimal form reset css is included that should work with most sites. A minimal form reset css is included that should work with most sites. A minimal form reset css is included that should work with most sites.

  • Simple Contact Form
  • Survery Form
  • Book a Demo Form
  • News Letter Form
  • Registration Form & more...
Learn More
alt Image

Ready to Experience Zunoy?

Start your journey with Zunoy’s powerful suite of tools, designed for startups, developers, and growing teams alike.

All our products come with a lifetime free tier.

Copyright © 2025 - Mentcube Innovations Pvt Ltd. All Rights Reserved.

FormAPI