Lovable contact form
Formgong team ·
Paste this into Lovable. Posts go to Formgong. No database and no Resend.
250 free submissions a month
How forms work in Lovable
Lovable builds React apps with Vite and Tailwind. Ask it for a contact form and it often builds its own backend. That means a table in Lovable Cloud or Supabase, plus an edge function that sends email through Resend with a secret API key. That works, but you then own a database table, a function and an email account just to read messages.
With Formgong the form posts straight from the browser to https://formgong.com/submit. Lovable only writes the frontend component. There is no table, no edge function and no secret, and each lead arrives by email and in Telegram, with a copy in the Formgong inbox.
Set it up in Lovable
- Create a form in the Formgong dashboard and copy its access key (it starts with
fk_). - Paste the prompt below into the Lovable chat. It names the endpoint, the key, the
_langfield and the hiddenbotcheckhoneypot, and tells Lovable not to add a backend. - Check the change Lovable made: the form component should call
fetchonformgong.com/submit. If you see a new table, an edge function or a Resend secret, ask Lovable to remove them. - Publish, send a test message from the live site and open it in the Formgong inbox. Then connect Telegram in the form settings.
- Optional: add one line to Project settings → Knowledge, such as “Forms post to Formgong; never add a backend for forms”. Later edits then keep the setup.
Add a contact form section to this site. Submissions go to Formgong, a hosted form backend, which emails them to the site owner. Lovable: do not enable Supabase, Edge Functions, or Resend 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. Власний бекенд, база даних і секретні ключі не потрібні. Вимоги: - POST на https://formgong.com/submit - Приховане поле access_key зі значенням fk_your_access_key (ключ публічний, його можна тримати у фронтенді) - Поля: name, email, phone (не обов'язково), message. Підписи українською - Honeypot: текстове поле botcheck, візуально приховане CSS-ом (position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)), tabindex="-1", autocomplete="off". Людина його не заповнює - Без завантаження файлів - Звичайна HTML-форма: method="POST" action="https://formgong.com/submit" - Якщо використовуєш fetch: Content-Type application/json і Accept: application/json. Успіх — це json.success === true - Після успіху покажи подяку українською - Не створюй серверні функції і не підключай Resend Додатково: - Поле email роби з type="email", щоб браузер перевіряв адресу. - Приховане поле _lang зі значенням uk (мова сторінки): так помилки, сторінка подяки й автовідповідь будуть українською. - Необов'язково: приховане поле _redirect з повною https-адресою вашої сторінки подяки. Без нього Formgong покаже власну сторінку подяки. - Необов'язково: <script src="https://formgong.com/fg.js" async></script> один раз на сторінці. Він підставляє _lang з <html lang> і рахує перегляди форми без cookies. - Turnstile додавай лише тоді, коли я дам site key.
Dodaj formularz kontaktowy wysyłający zgłoszenia do Formgong. Nie twórz backendu, bazy ani sekretów. - POST https://formgong.com/submit - Ukryte pole access_key o wartości fk_your_access_key (klucz jest publiczny) - Pola: name, email, phone (opcjonalnie), message. Etykiety po polsku - Honeypot: pole botcheck wizualnie ukryte za pomocą CSS - Bez uploadu plików i bez funkcji serwerowych - Zwykły formularz HTML albo fetch z Accept: application/json. Sukces to json.success === true Dodatkowo: - Pole email ustaw jako type="email", żeby przeglądarka sprawdzała adres. - Ukryte pole _lang o wartości pl (język strony): komunikaty błędów, strona z podziękowaniem i autoodpowiedź będą po polsku. - Opcjonalnie: ukryte pole _redirect z pełnym adresem https Twojej strony z podziękowaniem. Bez niego Formgong pokaże własną stronę z podziękowaniem. - Opcjonalnie: <script src="https://formgong.com/fg.js" async></script> raz na stronie. Uzupełnia _lang z <html lang> i liczy wyświetlenia formularza bez cookies. - Turnstile dodaj tylko wtedy, gdy podam site key.
Başvuruları Formgong'a gönderen bir iletişim formu ekle. Backend, veritabanı veya secret ekleme. - POST https://formgong.com/submit - Değeri fk_your_access_key olan gizli access_key alanı (anahtar herkese açıktır) - Alanlar: name, email, isteğe bağlı phone, message. Etiketler Türkçe - Honeypot: görsel olarak gizlenmiş botcheck alanı - Dosya yükleme ve sunucu fonksiyonu yok - Düz HTML form veya Accept: application/json ile fetch. Başarı: json.success === true Ayrıca: - email alanını type="email" yap, böylece tarayıcı adresi kontrol eder. - Değeri tr olan gizli _lang alanı (sayfanın dili): hata mesajları, teşekkür sayfası ve otomatik yanıt Türkçe olur. - İsteğe bağlı: teşekkür sayfanızın tam https adresini taşıyan gizli _redirect alanı. Yoksa Formgong kendi teşekkür sayfasını gösterir. - İsteğe bağlı: sayfaya bir kez <script src="https://formgong.com/fg.js" async></script>. _lang alanını <html lang> değerinden doldurur ve form görüntülemelerini çerezsiz sayar. - Turnstile'ı yalnızca site key verirsem ekle.
Añade un formulario de contacto que envíe los mensajes a Formgong. No crees backend, base de datos ni secretos. - POST https://formgong.com/submit - Campo oculto access_key con el valor fk_your_access_key (la clave es pública y va en el frontend) - Campos: name, email, phone opcional, message. Etiquetas en español - Honeypot: campo botcheck oculto fuera de pantalla - Sin archivos ni funciones de servidor - Formulario HTML normal, o fetch con Accept: application/json. El éxito es json.success === true
Ajoute un formulaire de contact qui envoie les messages à Formgong. Ne crée pas de backend, de base ni de secrets. - POST https://formgong.com/submit - Champ caché access_key avec la valeur fk_your_access_key (la clé est publique) - Champs : name, email, phone facultatif, message. Libellés en français - Honeypot : champ botcheck masqué hors écran - Pas de fichiers ni de fonctions serveur - Formulaire HTML simple, ou fetch avec Accept: application/json. Succès : json.success === true
Adiciona um formulário de contacto que envie os pedidos ao Formgong. Não cries backend, base de dados nem segredos. - POST https://formgong.com/submit - Campo oculto access_key com o valor fk_your_access_key (a chave é pública) - Campos: name, email, phone opcional, message. Etiquetas em português - Honeypot: campo botcheck escondido fora do ecrã - Sem ficheiros nem funções de servidor - Formulário HTML simples, ou fetch com Accept: application/json. Sucesso: json.success === true
أضف نموذج تواصل يرسل الطلبات إلى Formgong. لا تنشئ خادماً ولا قاعدة بيانات ولا أسراراً. - POST https://formgong.com/submit - حقل مخفي access_key بقيمة fk_your_access_key (المفتاح علني) - الحقول: name وemail وphone اختياري وmessage. التسميات بالعربية - فخ: حقل botcheck مخفي خارج الشاشة - بلا ملفات وبلا دوال خادم - نموذج HTML عادي، أو fetch مع Accept: application/json. النجاح هو json.success === true
הוסף טופס יצירת קשר ששולח פניות ל-Formgong. אל תיצור שרת, מסד נתונים או סודות. - POST https://formgong.com/submit - שדה נסתר access_key עם הערך fk_your_access_key (המפתח פומבי) - שדות: name, email, phone אופציונלי, message. תוויות בעברית - מלכודת: שדה botcheck מוסתר מחוץ למסך - בלי קבצים ובלי פונקציות שרת - טופס HTML רגיל, או fetch עם Accept: application/json. הצלחה: json.success === true
एक संपर्क फ़ॉर्म जोड़ो जो संदेश Formgong को भेजे। बैकएंड, डेटाबेस या सीक्रेट मत बनाओ। - POST https://formgong.com/submit - छिपा access_key फ़ील्ड, मान fk_your_access_key (कुंजी सार्वजनिक है) - फ़ील्ड: name, email, वैकल्पिक phone, message। लेबल हिंदी में - हनीपॉट: botcheck फ़ील्ड स्क्रीन के बाहर छिपा हो - फ़ाइलें और सर्वर फ़ंक्शन नहीं - सादा HTML फ़ॉर्म, या fetch में Accept: application/json। सफलता json.success === true
問い合わせを Formgong に送るフォームを追加してください。バックエンド、データベース、秘密情報は作らないでください。 - POST https://formgong.com/submit - 隠し項目 access_key の値は fk_your_access_key(キーは公開してよい) - 項目: name, email, 任意の phone, message。ラベルは日本語 - ハニーポット: 画面外に隠した botcheck - ファイル送信もサーバー関数もなし - 普通の HTML フォーム、または Accept: application/json の fetch。成功は json.success === true
Füge ein Kontaktformular hinzu, das Anfragen an Formgong sendet. Erstelle kein Backend, keine Datenbank und keine Secrets. - POST https://formgong.com/submit - Verstecktes Feld access_key mit dem Wert fk_your_access_key (der Schlüssel ist öffentlich und gehört in den Frontend-Code) - Felder: name, email, optional phone, message. Beschriftungen auf Deutsch - Honeypot: Textfeld botcheck, per CSS visuell verborgen (position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)), tabindex="-1", autocomplete="off" - Keine Datei-Uploads und keine Serverfunktionen, kein Resend - Normales HTML-Formular (method="POST" action="https://formgong.com/submit") oder fetch mit Content-Type application/json und Accept: application/json. Erfolg bedeutet json.success === true - Nach Erfolg eine Danke-Meldung anzeigen Zusätzlich: - Das Feld email mit type="email" anlegen, damit der Browser die Adresse prüft. - Verstecktes Feld _lang mit dem Wert de (Sprache der Seite): Fehlermeldungen, Danke-Seite und automatische Antwort erscheinen dann auf Deutsch. - Optional: verstecktes Feld _redirect mit der vollständigen https-Adresse deiner Danke-Seite. Ohne dieses Feld zeigt Formgong eine eigene Danke-Seite. - Optional: <script src="https://formgong.com/fg.js" async></script> einmal pro Seite. Es setzt _lang aus <html lang> und zählt Formularansichten ohne Cookies. - Turnstile nur einbauen, wenn ich dir einen Site Key gebe.
Ready Lovable project: lovable.dev. Open it, click Remix, then put your access key in src/components/ContactForm.tsx.
Ready React component on GitHub: github.com/formgong/react-contact-form. MIT license: click “Use this template” or copy the files.
React package: npm install @formgong/react (npm: @formgong/react)
Formgong or Lovable Cloud?
Keep the form inside Lovable Cloud or Supabase when submissions are part of your app's own data. An example is a signed-in user's request that other screens read and update.
Use Formgong when the form is a way to reach you: contact, quote or booking requests from visitors. You get delivery to email and Telegram, spam filtering and an inbox with statuses without building an admin page.
Questions and answers
Do I need Lovable Cloud or Supabase for this form?
No. The browser sends the form to Formgong, so the project needs no database, edge function or email provider for it. You can still use Lovable Cloud for other parts of the app.
Is it safe to put the access key in the frontend code?
Yes. The access key is public by design: it only allows sending submissions to your form. Spam filtering is always on, and on every plan you can limit the form to your own domains.
Lovable added Resend anyway. What do I do?
Ask it to delete the edge function and the secret, and to keep only the fetch call to formgong.com/submit. Adding the rule to Project Knowledge stops it from coming back in later edits.
Will the form keep working after I edit the app?
Yes, as long as the component still posts the same fields. Settings such as recipients, Telegram and redirects live in Formgong and change without republishing the app.
Articles on this topic
Related pages
Guides
- Formgong for agencies
- Static website contact form
- Netlify Forms alternative
- GDPR-compliant contact form
- Formspree alternatives
- Formcarry alternatives
- Formspark alternatives
- Splitforms alternatives
- Formgrid alternatives
- FormBackend alternatives
- Formbold alternatives
- Formester alternatives
- HeroTofu alternatives
- KwesForms alternatives
- Sheet Monkey alternatives
- Slapform alternatives
- Static Forms alternatives
- ShipMyForm alternatives
- Contact Form 7 alternatives
- WPForms alternatives
- Zapier Forms alternatives
- Forminit alternatives
- Fillout alternatives
- Formstack alternatives
- Microsoft Forms alternatives
- Paperform alternatives
- Freedback alternatives
- Pageclip alternatives
- EmbedSocial alternative
- Trustindex alternative
- Senja alternative
- Shapo alternative
- Junip alternative
- Famewall alternative
- FormKeep alternatives
- Jotform alternatives
- Basin alternatives
- Getform alternatives
- FormSubmit alternatives
- Typeform alternatives
- Tally alternatives
- Wufoo alternatives
- Google Forms alternatives
- Formgong alternatives
- Formsite alternatives
- Form for photographers
- Form for restaurants
- Form for clinics
- Form for real estate
- Form for lawyers
- Best form backend services
- Form endpoint services tested
- Contact form APIs tested
- Web3Forms alternatives
- EmailJS alternatives
- Formspree vs Web3Forms
- Formspree vs EmailJS
- Formspree vs Getform (Forminit)
- Formspree vs Basin
- Formspree vs FormSubmit
- Web3Forms vs Netlify Forms
- Netlify Forms vs Formspree
- Jotform vs Typeform
- Judge.me vs Yotpo
- Judge.me vs CusRev: the WooCommerce question
- Best free form backends
- Free website templates
- Testimonial and rating widget
- Judge.me alternative
- Yotpo alternative
- Loox alternative
- Stamped alternative
- Okendo alternative
- Fera alternative
- CusRev alternative
- Trustpilot alternative
- Testimonial.to alternative
- Elfsight alternative
- Trustmary alternative
- Boast alternative
- REVIEWS.io alternative
- Endorsal alternative
- AI builder prompts
- Form checker
- AI form generator
- Form builder
- Tailwind form generator
- Bootstrap form generator
- Booking form generator
- Order form generator
- Registration form generator
- Contact form generator
- HTML form generator
- HTML form builder
- Survey form generator
- Feedback form generator
- Newsletter signup form generator
- RSVP form generator
- Job application form generator
- Review schema generator
- Google review link generator
- Contact form examples
- HTML contact form code
- React contact form component
- Next.js contact form template
- Tailwind contact form template
- Shopify contact form Liquid
- Webflow contact form code
- Framer contact form component
- Astro contact form component
- Vue contact form component
- Ghost contact form
- WordPress contact page template
- Agent rules files
- Tools