NPS सर्वे फ़ॉर्म

पूछें कि विज़िटर आपको 0 से 10 तक कितना सुझाएगा, फिर वैकल्पिक टिप्पणी। एक सबमिशन, JavaScript होने पर दो चरण।

Tilda इस्तेमाल कर रहे हैं? T123 ब्लॉक में पेस्ट करें (पेड प्लान) या बिना कोड का वेबहुक।

आप क्या कॉपी कर रहे हैं

यह स्टार्टर पूछता है कि विज़िटर आपको सुझाने की कितनी संभावना रखता है, 0 से 10 के पैमाने पर, फिर एक वैकल्पिक टिप्पणी देता है।

यह आपके विज़िटरों का सर्वेक्षण है। यह Formgong की रेटिंग नहीं है, और यह साइट उत्पाद का कोई स्कोर प्रकाशित नहीं करती।

JavaScript होने पर टिप्पणी दूसरे चरण पर रहती है। स्क्रिप्ट वह चरण केवल स्कोर चुने जाने के बाद दिखाती है।

JavaScript के बिना noscript में एक छोटी स्टाइल दोनों चरण एक साथ दिखाती है। विज़िटर फिर भी एक फ़ॉर्म भेज सकता है।

अंत में एक ही POST होता है। पहला चरण आंशिक सबमिशन नहीं भेजता।

फ़ील्ड जो Telegram दिखाएगा

स्कोर score नाम का रेडियो समूह है। Telegram score छापता है और फिर संख्या, 0 से 10 तक।

टिप्पणी फ़ील्ड का नाम comment है। ईमेल वैकल्पिक है, नाम email, ताकि कोई पता छोड़े तो आप उत्तर दे सकें।

score नाम का दूसरा समूह न जोड़ें। एक ही नाम वाले रेडियो एक उत्तर हैं।

हनीपॉट botcheck शामिल है, खाली और स्क्रीन से बाहर। भरा हनीपॉट स्पैम है और डिलीवर नहीं होता।

अतिरिक्त स्निपेट चरणों के बाद वही उत्तर JSON के रूप में fetch से पोस्ट करता है। उसे फिर भी फ़ॉर्म में एक्सेस कुंजी चाहिए।

Turnstile टिप्पणी में रहता है जब तक आप उसे चालू न करें और साइट कुंजी न चिपकाएँ। YOUR_TURNSTILE_SITE_KEY प्लेसहोल्डर है, काम करने वाली कुंजी नहीं।

यह टेम्पलेट क्या दावा नहीं करता

टेम्पलेट प्रमोटर सूचकांक, चार्ट या बेंचमार्क नहीं गिनता। आप संख्याएँ इनबॉक्स या Telegram में पढ़ते हैं।

यह लीड का स्कोर नहीं निकालता, और उत्तर किसी मॉडल को नहीं भेजता। संख्या केवल एक फ़ील्ड है।

मुफ़्त प्लान सबमिशन 30 दिन रखता है और महीने में 300 की अनुमति देता है। Telegram तुरंत आता है। मुफ़्त प्लान पर हर सबमिशन का ईमेल आता है।

भंडारण यूरोपीय संघ में है। Formgong ऑपरेटर है। उत्पाद के बारे में support@formgong.com पर लिखें।

यदि इस दो-चरण वाले प्रश्न की जगह लंबा उद्योग फ़ॉर्म चाहिए, हब पर उद्योग टेम्पलेट उपयोग करें।

पूर्वावलोकन

आप हमें कितना सुझाएँगे?

कम संभावना · बहुत संभावना

फ़ॉर्म कोड

HTML
<form id="fg-nps" action="https://formgong.com/submit" method="POST" style="position:relative">
  <input type="hidden" name="access_key" value="fk_your_access_key">
  <input type="hidden" name="_lang" value="hi">
  <fieldset data-step="1">
    <legend>आप हमें कितना सुझाएँगे?</legend>
    <p><span>कम संभावना</span> <span>बहुत संभावना</span></p>
      <label><input type="radio" name="score" value="0" required> 0</label>
      <label><input type="radio" name="score" value="1" required> 1</label>
      <label><input type="radio" name="score" value="2" required> 2</label>
      <label><input type="radio" name="score" value="3" required> 3</label>
      <label><input type="radio" name="score" value="4" required> 4</label>
      <label><input type="radio" name="score" value="5" required> 5</label>
      <label><input type="radio" name="score" value="6" required> 6</label>
      <label><input type="radio" name="score" value="7" required> 7</label>
      <label><input type="radio" name="score" value="8" required> 8</label>
      <label><input type="radio" name="score" value="9" required> 9</label>
      <label><input type="radio" name="score" value="10" required> 10</label>
    <button type="button" data-next>आगे</button>
  </fieldset>
  <fieldset data-step="2" hidden>
    <label>हमें क्या जानना चाहिए? <textarea name="comment"></textarea></label>
    <label>ईमेल <input type="email" name="email" autocomplete="email"></label>
    <button type="button" data-back>पीछे</button>
    <button type="submit">भेजें</button>
  </fieldset>
  <div aria-hidden="true" style="position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)">
  <label>इस फ़ील्ड को खाली छोड़ें <input type="text" name="botcheck" tabindex="-1" autocomplete="off"></label>
</div>
  <!--
वैकल्पिक। इस फ़ॉर्म के लिए Turnstile चालू करें, फिर ये टिप्पणी चिह्न हटाएँ और साइट कुंजी चिपकाएँ।
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<div class="cf-turnstile" data-sitekey="YOUR_TURNSTILE_SITE_KEY" data-language="hi"></div>
-->
</form>
<noscript><style>[data-step]{display:block}</style></noscript>
<script>
(function () {
  var form = document.getElementById("fg-nps");
  if (!form) return;
  var steps = form.querySelectorAll("[data-step]");
  function show(index) {
    steps.forEach(function (step, i) { step.hidden = i !== index; });
  }
  var next = form.querySelector("[data-next]");
  var back = form.querySelector("[data-back]");
  if (next) next.addEventListener("click", function () {
    var picked = form.querySelector('input[name="score"]:checked');
    if (!picked) return;
    show(1);
  });
  if (back) back.addEventListener("click", function () { show(0); });
})();
</script>
वही उत्तर एक JSON fetch में
वही उत्तर एक JSON fetch में
<form id="fg-nps" action="https://formgong.com/submit" method="POST" style="position:relative">
  <input type="hidden" name="access_key" value="fk_your_access_key">
  <input type="hidden" name="_lang" value="hi">
  <fieldset data-step="1">
    <legend>आप हमें कितना सुझाएँगे?</legend>
    <p><span>कम संभावना</span> <span>बहुत संभावना</span></p>
      <label><input type="radio" name="score" value="0" required> 0</label>
      <label><input type="radio" name="score" value="1" required> 1</label>
      <label><input type="radio" name="score" value="2" required> 2</label>
      <label><input type="radio" name="score" value="3" required> 3</label>
      <label><input type="radio" name="score" value="4" required> 4</label>
      <label><input type="radio" name="score" value="5" required> 5</label>
      <label><input type="radio" name="score" value="6" required> 6</label>
      <label><input type="radio" name="score" value="7" required> 7</label>
      <label><input type="radio" name="score" value="8" required> 8</label>
      <label><input type="radio" name="score" value="9" required> 9</label>
      <label><input type="radio" name="score" value="10" required> 10</label>
    <button type="button" data-next>आगे</button>
  </fieldset>
  <fieldset data-step="2" hidden>
    <label>हमें क्या जानना चाहिए? <textarea name="comment"></textarea></label>
    <label>ईमेल <input type="email" name="email" autocomplete="email"></label>
    <button type="button" data-back>पीछे</button>
    <button type="submit">भेजें</button>
  </fieldset>
  <div aria-hidden="true" style="position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)">
  <label>इस फ़ील्ड को खाली छोड़ें <input type="text" name="botcheck" tabindex="-1" autocomplete="off"></label>
</div>
  <!--
वैकल्पिक। इस फ़ॉर्म के लिए Turnstile चालू करें, फिर ये टिप्पणी चिह्न हटाएँ और साइट कुंजी चिपकाएँ।
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<div class="cf-turnstile" data-sitekey="YOUR_TURNSTILE_SITE_KEY" data-language="hi"></div>
-->
</form>
<noscript><style>[data-step]{display:block}</style></noscript>
<script>
(function () {
  var form = document.getElementById("fg-nps");
  if (!form) return;
  var steps = form.querySelectorAll("[data-step]");
  function show(index) {
    steps.forEach(function (step, i) { step.hidden = i !== index; });
  }
  var next = form.querySelector("[data-next]");
  var back = form.querySelector("[data-back]");
  if (next) next.addEventListener("click", function () {
    var picked = form.querySelector('input[name="score"]:checked');
    if (!picked) return;
    show(1);
  });
  if (back) back.addEventListener("click", function () { show(0); });
})();
</script>
<script>
(function () {
  var form = document.getElementById("fg-nps");
  if (!form) return;
  var status = document.createElement("p");
  status.setAttribute("role", "status");
  form.appendChild(status);
  form.addEventListener("submit", function (event) {
    event.preventDefault();
    var data = Object.fromEntries(new FormData(form));
    fetch("https://formgong.com/submit", {
      method: "POST",
      headers: { "Content-Type": "application/json", Accept: "application/json" },
      body: JSON.stringify(data)
    }).then(function (res) { return res.json(); }).then(function (result) {
      status.textContent = result && result.success ? (result.message || "भेज दिया गया। धन्यवाद!") : ((result && result.message) || "भेजा नहीं जा सका। कृपया फिर से कोशिश करें।");
      if (result && result.success) form.reset();
    }).catch(function () {
      status.textContent = "भेजा नहीं जा सका। कृपया फिर से कोशिश करें।";
    });
  });
})();
</script>

सवाल और जवाब

क्या 0 निचला छोर है?

हाँ। रेडियो 0 से 10 तक चलते हैं। लेबल बताते हैं कौन सा छोर नीचा है और कौन सा ऊँचा। सहेजा मान संख्या है।

क्या आप टिप्पणी को आवश्यक बना सकते हैं?

आप textarea पर required विशेषता जोड़ सकते हैं। यह स्टार्टर उसे वैकल्पिक छोड़ता है ताकि अकेला स्कोर भेजा जा सके।

क्या पहला चरण कुछ सहेजता है?

नहीं। फ़ॉर्म सबमिट होने पर Formgong को एक सबमिशन मिलता है। टिप्पणी पर जाना पोस्ट नहीं करता।

ईमेल वैकल्पिक क्यों है?

कुछ लोग स्कोर साझा करेंगे और पता नहीं। यदि आपको उत्तर का मार्ग चाहिए, लेबल में ऐसा कहें और फ़ील्ड को आवश्यक चिह्नित करें।