טופס יצירת קשר ל-Replit

Formgong team ·

הדביקו את זה ב-Replit. הפניות הולכות ל-Formgong. בלי מסד נתונים ובלי Resend.

250 פניות חינם בחודש

איך טפסים עובדים ב-Replit

Replit Agent נוטה לבנות אפליקציות full-stack: ממשק משתמש ב-React עם שרת Express, לרוב עם מסד נתונים ושליחת מייל המוגדרים באמצעות Replit Secrets. עבור טופס יצירת קשר, זה אומר קוד שרת, טבלה וחשבון מייל שעליכם להמשיך להפעיל.

טופס Formgong נשלח מדפדפן המבקר לכתובת https://formgong.com/submit, כך שהשרת אינו מעורב בתהליך. הוא פועל באותו אופן הן בפריסת Autoscale והן בפריסה סטטית עבור אתר ללא תשתית אחורית.

הגדרה ב-Replit

  1. צרו טופס ב-Formgong והעתיקו את מפתח הגישה.
  2. הדביקו את הפרומפט שלמטה ב-Replit Agent. הפרומפט מבקש טופס צד-משתמש בלבד, ללא מסלול Express, טבלת מסד נתונים או מפתח סודי למייל.
  3. בדקו את הקבצים שהסוכן שינה: לא אמור להיות מסלול חדש ב-/api/contact, ולא אמור להיות סוד חדש לטופס.
  4. הפעל את האפליקציה, שלח בדיקה מ-WebView ופתח אותה בתיבת הדואר הנכנס של Formgong.
  5. פריסה. אם לאתר אין קוד שרת כלל, פריסה סטטית מספיקה; אחרת, יש לשמור על סוג הפריסה שבחר הסוכן.

מדריך צעד אחר צעד בתיעוד

Replit
Add a contact form to this app. Keep it frontend-only: submissions go to Formgong, a hosted form backend. Replit Agent: do not add an Express or Flask route, a database, Replit Secrets, or nodemailer 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.

הוספה לפרויקט קיים: npx formgong init (npm: formgong)

Formgong או במסלול Express?

המסלול שלכם הגיוני כאשר הפנייה המוזנת מזינה את האפליקציה: אחסונו ב-Postgres שלכם, קישורו למשתמש או הפעלת משימה.

Formgong הוא הדרך הקצרה ביותר ליצירת טפסי יצירת קשר ופניות: ללא קוד שרת, ללא מייל וללא צורך בתחזוקת מסד נתונים, כולל משלוח דרך Telegram וסינון דואר זבל.

שאלות ותשובות

האם יש להזין את מפתח הגישה ב-Replit Secrets?

לא. מפתח הגישה הוא ציבורי ועליו להגיע לדפדפן. סודות מיועדים לערכים פרטיים; מפתח המוסתר בשרת עלול לשבש את פעולת הטופס בדפדפן.

הסוכן הוסיף מסד נתונים לטופס. האם זו בעיה?

זוהי עבודה נוספת, לא טעות. אם אין שימוש אחר בטבלה, בקשו מהסוכן להסירה ולהשאיר רק את הטופס המוצג למשתמש.

האם ניתן לבצע בדיקה לפני הפריסה?

כן. פניות מ-Replit webview הן אמיתיות ומופיעות בתיבת הדואר הנכנס של Formgong. מחקו משם את הרשומות הניסיוניות כשתסיימו.

התחילו חינם