Base44 contact form

Formgong team ·

Paste this into Base44. Posts go to Formgong. No database and no Resend.

250 free submissions a month

How forms work in Base44

Base44 gives every app a built-in database, users and integrations. The obvious way to build a contact form is to save it as an entity and send a notification with the built-in SendEmail integration. According to Base44's docs, SendEmail can only send to people registered in your app, so it cannot notify an outside address and it has no Telegram.

With Formgong the form posts to https://formgong.com/submit and every lead arrives by email and in Telegram, with a copy in the Formgong inbox. Base44 only renders the form.

Set it up in Base44

  1. Create a form in Formgong and copy the access key.
  2. Paste the prompt below into Base44. It asks for a frontend form that posts to Formgong, without a new entity or the SendEmail integration.
  3. Preview the app and send a test message.
  4. Publish and send another test from the live address, then connect Telegram in the Formgong form settings.

Step-by-step guide in the docs

Base44
Add a contact form to this app. The page posts straight to Formgong, a hosted form backend. Base44: do not create an entity for submissions and do not use the built-in email integration for this form.

Formgong spec (follow exactly):
- Plain HTML: <form action="https://formgong.com/submit" method="POST">. With JavaScript, POST the same fields to https://formgong.com/submit using fetch.
- Hidden field access_key with value fk_your_access_key. The key is public and belongs in frontend code. Do not move it to a server or a secret.
- Hidden field _lang with the page language code, e.g. "en" (on multilingual sites use document.documentElement.lang). Formgong uses it for error messages, the thank-you page, and the autoreply.
- Fields: name, email, message (required); phone is optional. Keep these field names, and use <input type="email"> for email so browsers check the address.
- Honeypot: <input type="text" name="botcheck" tabindex="-1" autocomplete="off"> inside a wrapper with aria-hidden="true", visually hidden with CSS (position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)). Never fill it.
- Success, plain form POST: optionally add a hidden _redirect field with the absolute https URL of the site's thank-you page. Without it, Formgong shows its own thank-you page.
- Success, fetch: send Accept: application/json (and Content-Type: application/json for a JSON body; for FormData let the browser set it). If the response has success === true, show an inline thank-you message and reset the form; otherwise show the response's message.
- Turnstile: only if I give you a Cloudflare Turnstile site key, add <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script> and <div class="cf-turnstile" data-sitekey="SITE_KEY"></div> inside the form. Otherwise leave it out.
- Optional: add <script src="https://formgong.com/fg.js" async></script> once per page. It fills _lang from <html lang>, sets the Turnstile language, and counts form views without cookies.
- Do not create a backend, API route, server function, database table, or email-sending code (Supabase, Resend, SendGrid, nodemailer), and do not add secrets. No file uploads.

Formgong or a Base44 entity?

Save the form as a Base44 entity when your app has to show or process the data itself, for example requests that signed-in users track.

Use Formgong when the point is to get notified: visitors are not registered users, and you want the message in your email and Telegram right away.

Questions and answers

Why not use Base44's built-in SendEmail?

Base44's documentation says SendEmail only sends to registered users of the app. A visitor filling in a contact form is usually not one, and you probably want the message yourself, in email or Telegram.

Can visitors use the form without signing in?

Yes. The form posts to Formgong directly, so it works on public pages of your app.

Does Formgong need access to my Base44 account?

No. Only the form code changes. Formgong never connects to Base44.

Start free