Back to blog

How to Add a Contact Form to Your Cloudflare Pages Website Without a Backend

Cloudflare Pages is an excellent platform for hosting static websites, portfolios, landing pages, and client websites.

You can deploy a website built with HTML, React, Astro, Vue, or other frontend technologies without maintaining your own web server.

But there is one question that often comes up when building a website on Cloudflare Pages:

How do you receive contact form submissions and email notifications without building a backend?

Unlike a traditional full-stack application, a static website does not automatically have a server-side application that processes incoming form submissions.

You could implement your own solution using Cloudflare Workers, Pages Functions, a database, and an email delivery service.

But if you just need a working contact form that collects customer enquiries, that may be more infrastructure than you need.

In this tutorial, I will show you how to add a working contact form to your Cloudflare Pages website using Formgrid.dev.

You will be able to:

  • Receive and store contact form submissions.
  • Receive email notifications when someone contacts you.
  • Protect your contact form against spam.
  • Identify potential customers using AI lead classification.
  • Manage customer enquiries through a built-in lead pipeline.
  • Connect forms across multiple client websites.

All without writing your own Cloudflare Worker, configuring Pages Functions, or maintaining a separate database.

Does Cloudflare Pages Support Contact Forms?

Cloudflare Pages supports hosting websites that contain HTML forms.

However, deploying a contact form does not automatically give you a managed submission inbox, email notifications, or lead management functionality.

Consider this simple HTML form:

<form>
  <input type="text" name="name" required />
  <input type="email" name="email" required />
  <textarea name="message" required></textarea>
  <button type="submit">Send Message</button>
</form>

The form displays correctly in the browser, but it still needs a submission destination.

When someone clicks Send Message, a service needs to receive the submitted information, process it, and make it available to the website owner.

There are several ways to implement this on Cloudflare Pages:

  • Build a custom backend using Cloudflare Workers.
  • Use Cloudflare Pages Functions to process submissions.
  • Connect your website to an external form backend.

The third option is particularly useful if you want to keep your website static and avoid maintaining additional backend infrastructure.

How to Handle Cloudflare Pages Form Submissions Without Workers

Instead of building a server-side application, you can connect your contact form to a hosted form submission endpoint.

Your Cloudflare Pages website continues to handle the frontend, while the form backend handles everything that happens after someone submits the form.

The architecture looks like this:

Cloudflare Pages Website
          |
          v
     Contact Form
          |
      HTTP POST
          |
          v
Formgrid.dev Submission Endpoint
          |
          v
Validation and Spam Protection
          |
          v
   Accepted Submission
          |
    +-----+------+
    |            |
    v            v
Email          Lead
Notification   Dashboard

This approach allows you to keep your existing website design, frontend framework, and Cloudflare Pages deployment workflow.

You do not need to migrate your website to another hosting provider.

Step 1: Create a Free Formgrid.dev Account

Formgrid.dev is an open-source form backend, visual form builder, and built-in lead management platform that helps developers and businesses collect and manage website enquiries without maintaining their own form submission infrastructure.

Formgrid.dev landing page showing form backend, form builder, and lead management functionality

Visit the Formgrid.dev signup page and create a free account using your Google account or email address.

No credit card is required.

Formgrid.dev signup page showing Google and email registration options

Once you have signed up and completed any required verification, you will be directed to your dashboard.

Step 2: Create a New Form

From your dashboard, click New Form.

Enter a name for your form, such as:

Cloudflare Pages Contact Form

You can also add a description, although this is optional.

Click Create Form.

Formgrid.dev create-form dialog showing form name and project selection

Create a form to receive submissions from your Cloudflare Pages website.

Once the form has been created, you will be directed to its details page.

From here, you can either create a form using the visual form builder or connect your existing website form to the generated submission endpoint.

For this tutorial, we will use the endpoint approach so that you can keep complete control over your website's design.

Step 3: Copy Your Form Backend Endpoint

From your form's Overview page, locate your unique form submission endpoint.

Formgrid.dev form overview showing the generated endpoint and copy action

Copy the unique submission endpoint generated for your contact form.

Your endpoint will look something like this:

https://formgrid.dev/api/f/your-endpoint-slug

Every form has its own endpoint.

Copy the actual endpoint from your dashboard. You will use it to connect your Cloudflare Pages contact form.

Step 4: Connect Your HTML Contact Form

If your website already has a contact form, you do not need to rebuild it.

Simply update the form's action attribute to point to your Formgrid.dev endpoint and set the method to POST.

Here is a complete example:

<form
  action="https://formgrid.dev/api/f/your-endpoint-slug"
  method="POST"
>
  <div>
    <label for="name">Your Name</label>
    <input
      type="text"
      id="name"
      name="name"
      required
    />
  </div>

  <div>
    <label for="email">Your Email</label>
    <input
      type="email"
      id="email"
      name="email"
      required
    />
  </div>

  <div>
    <label for="phone">Phone Number (Optional)</label>
    <input
      type="tel"
      id="phone"
      name="phone"
    />
  </div>

  <div>
    <label for="message">How Can We Help?</label>
    <textarea
      id="message"
      name="message"
      rows="5"
      required
    ></textarea>
  </div>

  <button type="submit">
    Send Message
  </button>
</form>

Replace your-endpoint-slug with the actual endpoint generated for your form.

The important parts are:

  • The action attribute points to your Formgrid.dev endpoint.
  • The method is set to POST.
  • Each input has a name attribute.
  • Required fields use the required attribute for browser-side validation.

The name attributes determine which field values are included in the submission.

You can keep your existing CSS, Tailwind classes, responsive layout, and website branding.

You do not need to add a Cloudflare Worker or create a Pages Function to forward the submission.

Step 5: Handle Form Submissions With JavaScript (Optional)

The standard HTML form approach is sufficient for many websites.

However, you may want visitors to remain on the same page after submitting the form.

For example, you might want to display:

  • A loading indicator while the form is being submitted.
  • A success message when the submission is accepted.
  • An error message if something goes wrong.

You can achieve this using JavaScript and the Fetch API.

First, create your contact form:

<form
  id="contact-form"
  action="https://formgrid.dev/api/f/your-endpoint-slug"
  method="POST"
>
  <label for="name">Your Name</label>
  <input
    type="text"
    id="name"
    name="name"
    required
  />

  <label for="email">Your Email</label>
  <input
    type="email"
    id="email"
    name="email"
    required
  />

  <label for="message">Your Message</label>
  <textarea
    id="message"
    name="message"
    required
  ></textarea>

  <button type="submit" id="submit-button">
    Send Message
  </button>

  <p id="form-status" role="status" aria-live="polite"></p>
</form>

Then add the following JavaScript:

const form = document.getElementById("contact-form");
const submitButton = document.getElementById("submit-button");
const statusMessage = document.getElementById("form-status");

form.addEventListener("submit", async (event) => {
  event.preventDefault();

  if (submitButton.disabled) return;

  submitButton.disabled = true;
  submitButton.textContent = "Sending...";
  statusMessage.textContent = "";

  try {
    const formData = new FormData(form);

    const response = await fetch(form.action, {
      method: "POST",
      body: formData,
      headers: {
        Accept: "application/json",
      },
    });

    if (!response.ok) {
      throw new Error("Submission failed");
    }

    statusMessage.textContent =
      "Thank you! Your message has been sent.";

    form.reset();
  } catch (error) {
    statusMessage.textContent =
      "Unable to confirm submission. Please try again.";

    console.error("Contact form error:", error);
  } finally {
    submitButton.disabled = false;
    submitButton.textContent = "Send Message";
  }
});

This implementation:

  • Prevents the browser from navigating away from the page.
  • Sends the form data to your Formgrid.dev endpoint.
  • Disables the submit button during submission.
  • Displays success and error messages.
  • Clears the form after a successful response.
  • Preserves the entered information when a request fails.

Use the current integration snippets in your Formgrid.dev dashboard to confirm the supported request format and response structure. If the endpoint returns an application-level success indicator, check that indicator before displaying the success message.

If you enable CAPTCHA or other protections that require additional form fields, include those fields in your submission.

This same approach can be adapted to React, Vue, Astro, Svelte, and other frontend technologies deployed on Cloudflare Pages.

Step 6: Configure Email Notifications

Most business owners do not want to log in to a dashboard every time someone submits their contact form.

They want to receive an email immediately so they can respond to potential customers.

By default, the email address associated with your Formgrid.dev account is used as your notification recipient.

You can also configure a different recipient from your form's settings.

Formgrid.dev notification settings showing recipient email configuration

Configure where contact form notifications should be sent.

For example, imagine you are hosting a roofing company's website on Cloudflare Pages.

You can configure notifications to be sent directly to the roofing company's business email address.

When a homeowner submits a quote request, the business can receive an email containing the submitted information.

You do not need to:

  • Configure an SMTP server.
  • Create an email-sending Cloudflare Worker.
  • Set up a separate Resend account.
  • Maintain your own notification infrastructure.

Formgrid.dev handles configured email notifications as part of the form submission workflow.

If you are building websites for clients, this also means you do not have to receive their enquiries in your personal inbox and manually forward them.

Step 7: Protect Your Cloudflare Pages Contact Form Against Spam

Once your contact form is publicly accessible, it may attract automated bots, unsolicited marketing messages, fake enquiries, and suspicious links.

Hosting your website on Cloudflare Pages does not automatically protect an external form submission endpoint from every type of abuse.

You still need appropriate spam protection for the form itself.

Formgrid.dev takes a layered approach to spam protection.

Available protection mechanisms include:

Protection What it helps address
Honeypot protection Basic automated form submissions
Rate limiting Excessive and repeated submissions
Allowed Domains Unwanted use of your form endpoint
CAPTCHA Suspicious automated interactions
Content-based spam detection Suspicious messages and submission patterns
AI lead classification Identifying likely spam, sales pitches, and genuine enquiries

Formgrid.dev spam protection settings showing available form security controls

Configure additional spam protection from your form settings.

Configure Allowed Domains

If you want your form to receive submissions from a particular website, you can configure its allowed domains.

For example, if your website is hosted at:

my-business.pages.dev

You can configure that domain in your form settings.

If you have connected a custom domain to Cloudflare Pages, such as:

example.com
www.example.com

Use the actual domains associated with your website.

Cloudflare Pages preview deployments may use different hostnames from your production website. Keep this in mind when testing domain restrictions.

Allowed Domains provides an additional protection layer, but it should not be treated as complete security for a public submission endpoint.

Add Honeypot Protection

Honeypot protection helps identify basic automated bots without requiring genuine visitors to solve a CAPTCHA challenge.

It works by including an additional field that genuine visitors are not expected to complete.

If you are using a custom HTML form, follow the honeypot integration instructions provided by Formgrid.dev.

Enable CAPTCHA Protection

Formgrid.dev supports hCaptcha integration for custom HTML forms and Cloudflare Turnstile for forms created using its visual form builder.

If you enable mandatory CAPTCHA for your custom contact form, make sure you also implement the corresponding frontend integration and include the required verification token.

Do not simply enable mandatory CAPTCHA without updating your website.

Otherwise, legitimate submissions may be rejected.

Use Content-Based Spam Detection

CAPTCHA alone cannot identify every unwanted submission.

For example, a real person submitting an unsolicited SEO offer could successfully complete a CAPTCHA challenge.

Formgrid.dev uses additional submission checks to help identify suspicious content and spam patterns.

The goal is to reduce unwanted submissions without unnecessarily preventing genuine customers from contacting your business.

No public contact form is guaranteed to be completely spam-free, and some advanced protection features depend on your subscription plan.

Step 8: Deploy Your Website to Cloudflare Pages

Once you have connected your contact form, deploy your updated website to Cloudflare Pages.

If your website is already connected to a Git repository, commit and push your changes to the branch associated with your deployment.

For example:

git add .
git commit -m "Connect contact form to Formgrid.dev"
git push

If automatic deployments are enabled, Cloudflare Pages will build and deploy the updated website.

If you use Direct Upload instead, build your website if necessary and upload the updated output using your existing deployment workflow.

You can refer to the Cloudflare Pages documentation for deployment instructions specific to your framework.

You do not need to change your build command, output directory, or hosting configuration solely to connect a standard HTML contact form to Formgrid.dev.

Once the deployment is complete, open your published website.

Step 9: Test Your Contact Form

Submit a test enquiry from your published Cloudflare Pages website.

For example:

Name: Sarah Johnson

Email: sarah@example.com

Message:
Hello, I would like to request a quote
for a new website for my business.

Use an email address you control when testing email-related functionality.

After submitting the form, open your Formgrid.dev dashboard and confirm that the submission has been received.

Formgrid.dev submissions dashboard showing received contact form enquiries

Verify that submissions from your Cloudflare Pages website appear in your dashboard.

You should also check that the configured notification recipient receives an email.

Before handing over your website or making it available to customers, verify that:

  • The form submits to the correct endpoint.
  • All expected fields are stored.
  • Email notifications are delivered.
  • Success and error messages work correctly.
  • Spam protection is configured correctly.
  • The form works on desktop and mobile devices.
  • The form works on your production domain.

A success message in the browser does not necessarily mean that an email notification has been successfully delivered.

Always verify both the stored submission and email delivery.

You now have a contact form connected to your Cloudflare Pages website without building your own backend.

What Happens After Someone Submits Your Contact Form?

Getting a contact form to work is only the first step.

Imagine you have built and deployed a website for a local construction company using Cloudflare Pages.

The company receives 30 quote requests in a month.

Each request represents a potential customer.

If every enquiry simply arrives in an email inbox, the business may struggle to keep track of:

  • Which customers have already been contacted.
  • Which customers are waiting for a quote.
  • Which customers need a follow-up.
  • Which enquiries have become paying customers.

This is where a traditional email-only contact form starts to become limiting.

Formgrid.dev combines form submission processing with a built-in lead management system.

When an accepted submission arrives, two things happen:

  1. An email notification is sent to the configured recipient when notifications are enabled.
  2. The enquiry appears in your Leads tab, where you can manage its progress.

Formgrid.dev lead pipeline showing New, Contacted, and Converted stages

Manage enquiries from your Cloudflare Pages website without connecting a separate CRM.

Instead of building a website that simply sends emails, you can build one that helps businesses manage potential customers.

Turn Cloudflare Pages Form Submissions Into Customers

Formgrid.dev provides a built-in lead pipeline with three default stages.

Stage Meaning
New A recently received customer enquiry
Contacted You have responded to or contacted the potential customer
Converted The enquiry has become a customer or reached a successful outcome

Here is a demonstration of how the lead pipeline works:

Formgrid.dev lead management pipeline demonstration showing status updates, notes, and follow-up reminders

Imagine a potential customer submits the following enquiry through your website:

Hello, I am looking for a company to renovate my kitchen. Could you provide an estimate?

The enquiry appears in your Leads tab with the status New.

After calling the customer, you can update the status to Contacted.

You can also add notes such as:

Customer wants a complete kitchen renovation.

Discussed the estimated budget.

Site inspection scheduled for Thursday.

Follow up after sending the quotation.

Formgrid.dev lead details showing customer information, notes, and follow-up information

Keep customer information and follow-up details attached to each enquiry.

You can schedule a follow-up reminder to ensure that the potential customer is not forgotten.

If the customer accepts the quotation, you can mark the lead as Converted.

This is particularly useful for businesses where a single website enquiry could represent hundreds or thousands of dollars in potential revenue.

For developers and agencies, it also means you can deliver more value to your clients than a contact form that simply forwards messages to an inbox.

Identify Genuine Customer Enquiries With AI Lead Classification

Not every submission from your Cloudflare Pages contact form will be a potential customer.

Some people may be requesting support, while others may be promoting their own services or sending suspicious messages.

Traditional CAPTCHA protection cannot reliably distinguish between these intentions.

Formgrid.dev provides AI-powered lead classification to help businesses identify and prioritize incoming enquiries.

Submissions can be categorized using labels such as:

Classification Meaning
Hot Lead A potentially valuable customer enquiry
Likely Spam A suspicious or potentially unwanted submission
Sales Pitch Someone promoting their own product or service
Support Request Someone requesting assistance

For example, imagine receiving these four messages through your contact form.

Hot Lead:

Hi, I need a new website for my accounting business. Could you send me a quote?

Sales Pitch:

We offer affordable SEO services and backlink packages to improve your Google rankings.

Likely Spam:

Congratulations! You have been selected for an exclusive financial reward.

Support Request:

Hello, I am having trouble accessing my account. Could you help me?

All four messages could come from real people.

However, they represent different intentions and require different responses.

AI-powered lead classification gives you an additional signal to help identify which submissions deserve immediate attention.

This can be particularly valuable for businesses receiving enquiries across multiple websites.

AI classification complements traditional spam protection. It does not guarantee that every suspicious submission will be automatically blocked or quarantined.

Classification availability and usage allowances depend on your subscription plan.

An Alternative: Build Your Contact Form Without Writing HTML

If you do not already have a contact form on your Cloudflare Pages website, you can also use the Formgrid.dev visual form builder.

Instead of writing the form markup yourself, you can create a form using a drag-and-drop interface.

Formgrid.dev visual form builder showing customizable contact form fields

You can add fields such as:

  • Name.
  • Email address.
  • Phone number.
  • Message.
  • Service selection.
  • Project budget.
  • File uploads.

Customize the appearance of your form and publish it.

Once published, copy the available embed code and insert it into your Cloudflare Pages website.

This approach is useful if you want to manage your form fields and settings independently from your website's source code.

You have two options:

Approach Best for
Form backend endpoint Developers who want complete control over their HTML and styling
Visual form builder Users who want to create and manage forms without writing code

Both approaches allow you to receive submissions and manage customer enquiries from your Formgrid.dev dashboard.

Managing Contact Forms Across Multiple Cloudflare Pages Websites

If you are a freelance developer or web development agency, you may already be using Cloudflare Pages to host multiple client websites.

For example:

  • A roofing company's quote request form.
  • A photographer's booking enquiry form.
  • A restaurant's private event enquiry form.
  • A consulting company's contact form.
  • A real estate company's property enquiry form.

You could create and maintain a separate Cloudflare Worker or Pages Function for every website.

However, each additional website introduces more configuration and maintenance responsibilities.

You need to keep track of email delivery, spam protection, submission storage, and any backend changes.

With Formgrid.dev, you can organize forms into separate projects, subject to your subscription plan.

Formgrid.dev project selector showing how different client websites can be organized into separate projects

Organize forms and customer enquiries across multiple client websites.

For example:

Project Forms
Roofing Company Contact Form, Quote Request
Photography Studio Contact Form, Booking Enquiry
Restaurant Private Events, Catering Enquiry
Consulting Company Contact Form, Consultation Request

Each form has its own submission endpoint and notification settings.

You can configure each client's enquiries to be delivered to their own email address.

This creates a repeatable workflow:

Create a client project
          |
Create a form
          |
Copy the submission endpoint
          |
Connect the Cloudflare Pages website
          |
Configure notifications and spam protection
          |
Test and hand over the website

You do not have to rebuild the same submission infrastructure for every client.

If your clients need dashboard access, Formgrid.dev also offers project collaboration options on its Business plan.

This allows you to deliver a website alongside a system for managing incoming customer enquiries.

Moving From Netlify Forms to Cloudflare Pages?

One common consideration when moving a static website from Netlify to Cloudflare Pages is how to handle existing contact forms.

Netlify provides a managed form handling service that can process forms deployed on its platform.

For example, your existing form might look like this:

<form
  name="contact"
  method="POST"
  data-netlify="true"
>
  <input type="text" name="name" required />
  <input type="email" name="email" required />
  <textarea name="message" required></textarea>

  <button type="submit">
    Send Message
  </button>
</form>

When you move your website to Cloudflare Pages, Netlify-specific form handling does not automatically continue working.

You need to replace that submission workflow.

With Formgrid.dev, you can update the form to use an external endpoint:

<form
  action="https://formgrid.dev/api/f/your-endpoint-slug"
  method="POST"
>
  <input type="text" name="name" required />
  <input type="email" name="email" required />
  <textarea name="message" required></textarea>

  <button type="submit">
    Send Message
  </button>
</form>

Remove any Netlify-specific submission scripts or attributes that are no longer needed.

If your existing form uses JavaScript to submit to a Netlify-specific destination, update that submission logic as well.

Your website's layout and styling can remain unchanged.

After migrating, configure email notifications and spam protection, then test the entire submission workflow.

Using a hosting-independent form backend also means that your form submission infrastructure does not have to change every time you switch hosting providers.

Cloudflare Workers vs Pages Functions vs a Hosted Form Backend

Cloudflare Workers and Pages Functions are powerful tools.

If you need complex server-side functionality, they may be the right solution for your application.

However, there is a difference between implementing custom application logic and simply receiving customer enquiries.

Here is a comparison of the three approaches.

Requirement Cloudflare Workers Pages Functions Formgrid.dev
Custom backend code Required Required Not required for standard forms
Form submission endpoint Implement yourself Implement yourself Generated automatically
Submission storage Configure separately Configure separately Built-in
Email notifications Configure or implement Configure or implement Built-in
Spam protection Configure or implement Configure or implement Built-in protection options
Submission dashboard Build or integrate Build or integrate Built-in
Lead management Build or integrate Build or integrate Built-in
AI lead classification Additional implementation Additional implementation Available
Follow-up reminders Additional implementation Additional implementation Available
Custom business logic Flexible Flexible Focused on form workflows

Workers and Pages Functions can be a good choice when you need:

  • Custom application logic.
  • Specialized API endpoints.
  • Authentication workflows.
  • Complex database operations.
  • Complete control over server-side processing.

A dedicated form backend can be a better fit when your primary goal is to:

  • Receive website enquiries.
  • Send email notifications.
  • Store form submissions.
  • Protect forms against spam.
  • Manage potential customers.
  • Reduce ongoing maintenance.

You do not necessarily need to build a complete backend application just to make a contact form work.

When Should You Upgrade From a Free Form Backend Plan?

If you are building a personal portfolio or testing a new website, a free form backend plan may be sufficient.

However, the requirements of an active business website are often different.

A business may need higher submission allowances, more advanced spam protection, automated confirmation emails, integrations, or additional notification recipients.

An agency may also need to manage multiple client projects and give clients access to their own enquiries.

Formgrid.dev offers free and paid plans for different requirements.

Consider upgrading when you need:

  • Higher monthly submission allowances.
  • Advanced spam protection and AI classification allowances.
  • Custom email autoresponders.
  • Additional notification recipients.
  • Custom lead pipeline stages.
  • Google Sheets and other integrations.
  • Removal of form branding.
  • Multiple client projects.
  • Team and client collaboration.

Feature availability depends on the selected plan.

You can compare the available features on the Formgrid.dev pricing page.

The important question is not simply how much it costs to receive a form submission.

It is how much time you spend maintaining the infrastructure and whether your business has the tools to follow up with potential customers.

For a service business, converting even one additional customer can be worth considerably more than the cost of its form management software.

Start with a single website, test the complete workflow, and choose a plan that matches your actual business requirements.

Troubleshooting Cloudflare Pages Contact Forms

My Contact Form Does Not Submit

First, check that the form's action attribute points to your actual Formgrid.dev endpoint.

Make sure the method is set to POST and each input has a name attribute.

If you are using JavaScript, inspect the browser's Network tab to verify that the request is being sent.

Check the actual response status and response body.

My Contact Form Works Locally but Not on Cloudflare Pages

Check whether you have configured Allowed Domains.

Your local development environment may use a different hostname from your deployed website.

Make sure your production domain is configured correctly.

If you use JavaScript, also check for browser security errors, including CORS and Content Security Policy restrictions.

A Content Security Policy may need to permit connections to https://formgrid.dev through its connect-src directive for JavaScript submissions, or its form-action directive for standard HTML submissions.

Avoid disabling your entire security policy just to make the form work.

My Form Returns a CORS Error

Cross-Origin Resource Sharing controls whether browser-based JavaScript can access responses from another origin.

If your JavaScript submission produces a CORS error, verify that:

  • You are using the correct public submission endpoint.
  • Your website's domain is permitted.
  • Your request matches the supported integration format.
  • Your browser is not sending unnecessary custom headers.

Refer to the integration snippets in your Formgrid.dev dashboard.

Do not use mode: "no-cors" simply to hide the error. An opaque response prevents your JavaScript from reliably confirming whether the submission succeeded.

My Contact Form Shows Success but No Submission Appears

Check whether your frontend displays a success message before the actual network request has completed.

A success message should only appear after the submission endpoint confirms success.

Inspect your browser's network requests and verify that the correct form endpoint is being used.

I Receive Submissions but No Email Notifications

Open your form's notification settings and confirm that:

  • Notifications are enabled.
  • The recipient email address is correct.
  • The notification has not been delivered to your spam folder.

Also check whether the submission was marked as spam.

A stored submission and a successfully delivered email notification are different things.

My Contact Form Returns a 403 Error

Review your form's security configuration.

Possible causes include domain restrictions, CAPTCHA requirements, or other request validation failures.

Inspect the actual error response before changing your settings.

My Contact Form Returns a 429 Error

A 429 response generally indicates that a rate limit has been reached.

Avoid repeatedly submitting the form within a short period.

Review your form's rate limits and account usage allowances.

My Form Stopped Working After Enabling CAPTCHA

If you enable mandatory CAPTCHA protection, your frontend must include the corresponding CAPTCHA integration and verification token.

Follow the instructions in your Formgrid.dev dashboard and test the complete submission workflow again.

Frequently Asked Questions

Can I add a contact form to Cloudflare Pages without a backend?

Yes. You can connect your contact form to a hosted form backend such as Formgrid.dev.

Your website remains hosted on Cloudflare Pages, while Formgrid.dev handles submission processing, storage, and configured email notifications.

You do not need to build or maintain your own backend.

Do I need Cloudflare Workers for contact forms?

No. Cloudflare Workers are one way to implement contact form processing, but they are not required if you use an external form backend.

You can connect your HTML form directly to a public submission endpoint.

Does Cloudflare Pages have built-in form handling like Netlify Forms?

Cloudflare Pages does not provide the same managed HTML form handling workflow as Netlify Forms.

You can implement form processing using Workers or Pages Functions, or connect your website to a dedicated form backend.

How do I receive contact form emails from Cloudflare Pages?

Connect your contact form to a service that supports email notifications.

With Formgrid.dev, you can configure the intended recipient from your form's settings.

When an accepted submission arrives, a notification can be sent to that recipient.

Can I use Formgrid.dev with Astro on Cloudflare Pages?

Yes. Astro websites can submit standard HTML forms or use JavaScript to send requests to a Formgrid.dev endpoint.

You do not need to enable server-side rendering solely to process a standard contact form through an external backend.

Can I use Formgrid.dev with React or Vue on Cloudflare Pages?

Yes. You can connect a React or Vue contact form to a Formgrid.dev endpoint using the Fetch API or another HTTP client.

Follow the integration examples provided in your form's dashboard.

Can I use Cloudflare Turnstile to protect my contact form?

Cloudflare Turnstile can be used to protect forms when its tokens are properly verified by a backend.

Formgrid.dev supports Turnstile for forms created with its visual form builder and hCaptcha for custom HTML forms.

If you are using a custom form, follow the supported CAPTCHA integration instructions in your dashboard.

Is it safe to expose a form endpoint in frontend code?

Public form submission endpoints are designed to receive submissions from website visitors.

You can include your Formgrid.dev submission endpoint in your frontend.

However, private API keys, administrative credentials, and other secrets should never be exposed in browser code.

Configure appropriate spam protection for your public endpoint.

Can I receive Cloudflare Pages form submissions for free?

Yes. Formgrid.dev provides a free plan with a monthly submission allowance.

You can create a form endpoint and test your integration without providing a credit card.

Check the pricing page for current usage limits and feature availability.

Can I manage multiple Cloudflare Pages websites from one account?

Yes. Formgrid.dev allows you to organize forms into projects, with separate endpoints and notification settings for each form.

Project allowances and collaboration features depend on your subscription plan.

Do I need a separate CRM to manage my website enquiries?

Not necessarily.

Formgrid.dev provides a built-in lead pipeline where you can track customer enquiries, update lead statuses, add notes, and schedule follow-up reminders.

For businesses that primarily need to manage website enquiries, this can reduce the need for a separate CRM.

Final Thoughts

Cloudflare Pages makes hosting websites straightforward.

Your contact form should be just as straightforward.

You should not have to build a separate API, configure a database, implement email delivery, and maintain spam filtering infrastructure every time you launch a business website.

With Formgrid.dev, you can connect your existing contact form to a unique submission endpoint and let the platform handle the form processing workflow.

But receiving submissions is only part of the value.

You can also:

  • Receive email notifications.
  • Protect your forms against spam.
  • Identify potential customers using AI lead classification.
  • Manage enquiries through a built-in lead pipeline.
  • Schedule follow-up reminders.
  • Organize forms across multiple client websites.

Whether you are building a personal portfolio, a business website, or managing websites for multiple clients, you can keep your Cloudflare Pages hosting setup and avoid maintaining unnecessary backend infrastructure.

Don't just build a contact form that sends emails. Build one that helps businesses turn enquiries into customers.

Create a free Formgrid.dev account and connect your first contact form.

No credit card required.


Disclosure: I am the developer behind Formgrid.dev, an open-source form backend, visual form builder, and lead management platform.

Form submission becoming a tracked lead in Formgrid

Every form submission becomes a tracked lead automatically. Email notification, pipeline tracking, notes, and follow up reminders all built in. No separate CRM needed.

Start free at formgrid.dev →

Have a Question or Feature Request?

Have a question about Formgrid or want to suggest a feature? We read and reply to every message personally.

Or email directly: allen@formgrid.dev

Feature Requests and Support

Fill in all required fields marked with *.

This form is powered by Formgrid

Comments

Leave a comment