Next.js के लिए संपर्क फ़ॉर्म

इसे Next.js में चिपकाएँ। सबमिशन Formgong पर जाते हैं। न डेटाबेस, न Resend।

AI लीड स्कोरिंग हर प्लान पर मुफ़्त है, महीने में 100 स्कोर किए सबमिशन तक। इसे फ़ॉर्म पर चालू करें। गर्म लीड और संभावित स्पैम Telegram, ईमेल और इनबॉक्स में दिखते हैं।

Next.js
"use client";

export function ContactForm() {
  async function onSubmit(event) {
    event.preventDefault();
    const fields = Object.fromEntries(new FormData(event.currentTarget));
    const response = await fetch("https://formgong.com/submit", {
      method: "POST",
      headers: { "Content-Type": "application/json", Accept: "application/json" },
      body: JSON.stringify({ ...fields, access_key: "fk_your_access_key" }),
    });
    const result = await response.json();
    if (!result.success) throw new Error(result.message || "Formgong error");
  }

  return (
    <form onSubmit={onSubmit}>
      <input name="name" required />
      <input name="email" type="email" required />
      <textarea name="message" required />
      <div aria-hidden="true" style={{ position: "absolute", left: "-10000px" }}>
        <input name="botcheck" tabIndex={-1} autoComplete="off" />
      </div>
      <button type="submit">Send</button>
    </form>
  );
}

मुफ़्त शुरू करें