Patient intake form
First-visit details for a clinic. Leave out anything the visit does not need.
Using Tilda? Paste into a T123 block (paid plan) or use the no-code webhook.
This form is not a medical record. Do not send diagnoses, test results, or other health details you do not need for the request. Health data is a special category under the GDPR.
What this form is for
An intake form saves time at the first visit: the clinic knows who is coming, why, and whom to call in an emergency. The risk is collecting far more health data than the visit needs, in a channel that was never meant to be a medical record.
This template keeps intake short. It asks whether the patient takes medication and opens a note only when the answer is yes. Diagnoses and history are left for the consultation itself.
The fields that matter
- Date of birth
- Tells apart patients with the same name and is often needed for registration.
- First visit
- New patients may need extra paperwork or a longer slot.
- Medications
- A yes/no question with an optional note avoids a long free-text history.
- Emergency contact
- Optional, but useful for procedures where someone may need to be called.
Preview
Form code
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Patient intake form</title>
<style>
body { font-family: "Segoe UI", sans-serif; color: #12263a; margin: 0; background: #fff; }
main { max-width: 640px; margin: 0 auto; padding: 32px 20px 64px; }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 18px; margin: 18px 0 0; }
p { line-height: 1.5; }
form { display: grid; gap: 14px; position: relative; }
.field { display: grid; gap: 6px; }
label span, .check span { font-size: 14px; }
input, select, textarea { font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #b4bdce; border-radius: 8px; width: 100%; box-sizing: border-box; background: #fff; }
textarea { min-height: 96px; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; margin-top: 4px; }
button { background: #3c4ad8; color: #fff; border: 0; border-radius: 8px; padding: 12px 18px; font: inherit; cursor: pointer; }
.note { background: #fff6eb; padding: 12px 14px; border-radius: 8px; }
form [data-show-if] { display: none; }
form:has(select[name="medications"] option[value="yes"]:checked) [data-show-if="medications"][data-show-equals="yes"] { display: grid; }
</style>
</head>
<body>
<main>
<h1 data-i18n="title">Patient intake form</h1>
<p data-i18n="lede">First-visit details for a clinic. Leave out anything the visit does not need.</p>
<p class="note" data-i18n="disclaimer">This form is not a medical record. Do not send diagnoses, test results, or other health details you do not need for the request. Health data is a special category under the GDPR.</p>
<form id="fg-form" action="https://formgong.com/submit" method="POST" enctype="multipart/form-data" data-sitekey="" data-lang="en">
<input type="hidden" name="access_key" value="fk_your_access_key">
<input type="hidden" name="_lang" value="en">
<div aria-hidden="true" style="position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)"><label>Leave this field empty<input name="botcheck" tabindex="-1" autocomplete="off"></label></div>
<section><h2 data-i18n="section.patient">Patient</h2>
<div class="field"><label for="fg-name"><span data-i18n="name">Name</span></label><input id="fg-name" name="name" type="text" required maxlength="80" autocomplete="name"></div>
<div class="field"><label for="fg-birth_date"><span data-i18n="birth_date">Date of birth</span></label><input id="fg-birth_date" name="birth_date" type="date" required></div>
<div class="field"><label for="fg-phone"><span data-i18n="phone">Phone</span></label><input id="fg-phone" name="phone" type="tel" required maxlength="40" autocomplete="tel"></div>
<div class="field"><label for="fg-email"><span data-i18n="email">Email</span></label><input id="fg-email" name="email" type="email" maxlength="120" autocomplete="email"></div></section>
<section><h2 data-i18n="section.visit">This visit</h2>
<div class="field"><label for="fg-first_visit"><span data-i18n="first_visit">Is this your first visit here?</span></label><select id="fg-first_visit" name="first_visit" required><option value="">—</option><option value="yes" data-i18n="first_visit.yes">Yes</option><option value="no" data-i18n="first_visit.no">No</option></select></div>
<div class="field"><label for="fg-reason"><span data-i18n="reason">Why are you coming in?</span></label><textarea id="fg-reason" name="reason" required maxlength="500"></textarea></div>
<div class="field"><label for="fg-medications"><span data-i18n="medications">Do you take regular medication the clinic should know about?</span></label><select id="fg-medications" name="medications" required><option value="">—</option><option value="yes" data-i18n="medications.yes">Yes</option><option value="no" data-i18n="medications.no">No</option></select></div>
<div class="field" data-show-if="medications" data-show-equals="yes"><label for="fg-medication_note"><span data-i18n="medication_note">Which medicines? Leave blank if the visit does not need the list.</span></label><textarea id="fg-medication_note" name="medication_note" maxlength="500"></textarea></div></section>
<section><h2 data-i18n="section.emergency">Emergency contact</h2>
<div class="field"><label for="fg-emergency_name"><span data-i18n="emergency_name">Name</span></label><input id="fg-emergency_name" name="emergency_name" type="text" maxlength="80" autocomplete="name"></div>
<div class="field"><label for="fg-emergency_phone"><span data-i18n="emergency_phone">Phone</span></label><input id="fg-emergency_phone" name="emergency_phone" type="tel" maxlength="40" autocomplete="tel"></div></section>
<section><h2 data-i18n="section.consent">Consent</h2>
<div class="field"><label class="check"><input id="fg-consent_health" name="consent_health" type="checkbox" value="yes" required><span data-i18n="consent_health">I agree that you process the health details I give here to answer my request.</span></label></div></section>
<!-- Set data-sitekey on this form to YOUR_TURNSTILE_SITE_KEY. Required for attachments. -->
<div data-turnstile></div>
<button type="submit" data-i18n="submit">Send</button>
<p data-status role="status"></p>
</form>
</main>
<script type="application/json" id="fg-labels">{"uk":{"title":"Форма первинного прийому пацієнта","lede":"Дані для першого візиту. Не додавайте те, без чого прийом можна провести.","submit":"Надіслати","thanks":"Надіслано. Дякуємо.","file_too_big":"До 3 файлів, по 5 MiB, разом до 10 MiB.","error":"Не вдалося надіслати. Спробуйте ще раз.","disclaimer":"Ця форма не є медичним записом. Не надсилайте діагнози, результати аналізів чи інші дані про здоров'я, без яких заявку не обробити. Дані про здоров'я — особлива категорія за GDPR.","section.patient":"Пацієнт","name":"Ім'я","birth_date":"Дата народження","phone":"Телефон","email":"Електронна пошта","section.visit":"Цей візит","first_visit":"Це ваш перший візит сюди?","first_visit.yes":"Так","first_visit.no":"Ні","reason":"Чому ви приходите?","medications":"Чи є регулярні ліки, про які клініці варто знати?","medications.yes":"Так","medications.no":"Ні","medication_note":"Які ліки? Залиште порожнім, якщо для візиту список не потрібен.","section.emergency":"Екстрений контакт","emergency_name":"Ім'я","emergency_phone":"Телефон","section.consent":"Згода","consent_health":"Погоджуюсь, що ви обробляєте дані про здоров'я, які я тут надаю, щоб відповісти на мій запит."},"en":{"title":"Patient intake form","lede":"First-visit details for a clinic. Leave out anything the visit does not need.","submit":"Send","thanks":"Sent. Thank you.","file_too_big":"Up to 3 files, 5 MiB each and 10 MiB combined.","error":"Could not send. Please try again.","disclaimer":"This form is not a medical record. Do not send diagnoses, test results, or other health details you do not need for the request. Health data is a special category under the GDPR.","section.patient":"Patient","name":"Name","birth_date":"Date of birth","phone":"Phone","email":"Email","section.visit":"This visit","first_visit":"Is this your first visit here?","first_visit.yes":"Yes","first_visit.no":"No","reason":"Why are you coming in?","medications":"Do you take regular medication the clinic should know about?","medications.yes":"Yes","medications.no":"No","medication_note":"Which medicines? Leave blank if the visit does not need the list.","section.emergency":"Emergency contact","emergency_name":"Name","emergency_phone":"Phone","section.consent":"Consent","consent_health":"I agree that you process the health details I give here to answer my request."},"pl":{"title":"Formularz wywiadu pacjenta","lede":"Dane na pierwszą wizytę. Pomiń to, bez czego wizyta może się odbyć.","submit":"Wyślij","thanks":"Wysłano. Dziękujemy.","file_too_big":"Do 3 plików, po 5 MiB, łącznie 10 MiB.","error":"Nie udało się wysłać. Spróbuj ponownie.","disclaimer":"Ten formularz nie jest dokumentacją medyczną. Nie wysyłaj rozpoznań, wyników badań ani innych danych o zdrowiu, które nie są potrzebne do obsługi zgłoszenia. Dane o zdrowiu to szczególna kategoria w RODO.","section.patient":"Pacjent","name":"Imię","birth_date":"Data urodzenia","phone":"Telefon","email":"E-mail","section.visit":"Ta wizyta","first_visit":"Czy to pierwsza wizyta tutaj?","first_visit.yes":"Tak","first_visit.no":"Nie","reason":"Po co przychodzisz?","medications":"Czy przyjmujesz leki, o których przychodnia powinna wiedzieć?","medications.yes":"Tak","medications.no":"Nie","medication_note":"Jakie leki? Zostaw puste, jeśli wizyta nie wymaga listy.","section.emergency":"Kontakt alarmowy","emergency_name":"Imię","emergency_phone":"Telefon","section.consent":"Zgoda","consent_health":"Zgadzam się, abyście przetwarzali podane tu dane o moim zdrowiu w celu odpowiedzi na moje zgłoszenie."},"tr":{"title":"Hasta kabul formu","lede":"İlk ziyaret için bilgiler. Ziyaret onsuz yapılabiliyorsa eklemeyin.","submit":"Gönder","thanks":"Gönderildi. Teşekkürler.","file_too_big":"En fazla 3 dosya, dosya başına 5 MiB, toplam 10 MiB.","error":"Gönderilemedi. Lütfen tekrar deneyin.","disclaimer":"Bu form bir tıbbi kayıt değildir. Tanı, tahlil sonucu veya talep için gerekmeyen başka sağlık verisi göndermeyin. Sağlık verisi GDPR'de özel nitelikli veridir.","section.patient":"Hasta","name":"Ad","birth_date":"Doğum tarihi","phone":"Telefon","email":"E-posta","section.visit":"Bu ziyaret","first_visit":"Buraya ilk gelişiniz mi?","first_visit.yes":"Evet","first_visit.no":"Hayır","reason":"Neden geliyorsunuz?","medications":"Kliniğin bilmesi gereken düzenli bir ilaç var mı?","medications.yes":"Evet","medications.no":"Hayır","medication_note":"Hangi ilaçlar? Ziyaret için liste gerekmiyorsa boş bırakın.","section.emergency":"Acil durumda","emergency_name":"Ad","emergency_phone":"Telefon","section.consent":"Onay","consent_health":"Burada verdiğim sağlık bilgilerimin talebime yanıt vermek için işlenmesini kabul ediyorum."},"ar":{"title":"نموذج استقبال المريض","lede":"بيانات الزيارة الأولى للعيادة. اترك كل ما لا تحتاجه الزيارة.","submit":"إرسال","thanks":"تم الإرسال. شكرًا لك.","file_too_big":"حتى 3 ملفات، 5 MiB لكل ملف و10 MiB إجمالًا.","error":"تعذّر الإرسال. يُرجى المحاولة مرة أخرى.","disclaimer":"هذا النموذج ليس سجلاً طبياً. لا ترسل تشخيصات أو نتائج فحوصات أو أي تفاصيل صحية أخرى لا تحتاجها في هذا الطلب. تُعتبر البيانات الصحية فئة خاصة بموجب اللائحة العامة لحماية البيانات (GDPR).","section.patient":"المريض","name":"الاسم","birth_date":"تاريخ الميلاد","phone":"الهاتف","email":"البريد الإلكتروني","section.visit":"هذه الزيارة","first_visit":"هل هذه زيارتك الأولى هنا؟","first_visit.yes":"نعم","first_visit.no":"لا","reason":"ما سبب زيارتك؟","medications":"هل تتناول أدوية بانتظام يجب أن تعرفها العيادة؟","medications.yes":"نعم","medications.no":"لا","medication_note":"ما الأدوية؟ اترك الحقل فارغًا إذا لم تحتج الزيارة إلى القائمة.","section.emergency":"جهة اتصال للطوارئ","emergency_name":"الاسم","emergency_phone":"الهاتف","section.consent":"الموافقة","consent_health":"أوافق على أن تعالجوا البيانات الصحية التي أقدمها هنا للرد على طلبي."},"he":{"title":"טופס קליטת מטופל","lede":"פרטים לביקור ראשון במרפאה. השמיטו כל מה שאינו נחוץ לביקור.","submit":"שליחה","thanks":"נשלח. תודה.","file_too_big":"עד 3 קבצים, 5 MiB לכל קובץ ו-10 MiB בסך הכול.","error":"השליחה נכשלה. נסו שוב.","disclaimer":"הטופס הזה אינו רשומה רפואית. אל תשלחו אבחנות, תוצאות בדיקות או פרטי בריאות אחרים שאינם נחוצים לפנייה. נתוני בריאות הם קטגוריה מיוחדת לפי ה-GDPR.","section.patient":"מטופל","name":"שם","birth_date":"תאריך לידה","phone":"טלפון","email":"אימייל","section.visit":"הביקור הזה","first_visit":"האם זה הביקור הראשון שלך כאן?","first_visit.yes":"כן","first_visit.no":"לא","reason":"מה סיבת ההגעה?","medications":"האם את/ה נוטל/ת תרופות קבועות שהמרפאה צריכה לדעת עליהן?","medications.yes":"כן","medications.no":"לא","medication_note":"אילו תרופות? השאירו ריק אם הביקור לא דורש את הרשימה.","section.emergency":"איש קשר לחירום","emergency_name":"שם","emergency_phone":"טלפון","section.consent":"הסכמה","consent_health":"אני מסכים/ה לעיבוד פרטי הבריאות שמסרתי כאן לצורך מענה לבקשה שלי."},"es":{"title":"Formulario de admisión de pacientes","lede":"Datos para la primera visita a una clínica. Omite lo que la visita no necesite.","submit":"Enviar","thanks":"Enviado. Gracias.","file_too_big":"Hasta 3 archivos, 5 MiB cada uno y 10 MiB en total.","error":"No se pudo enviar. Inténtalo de nuevo.","disclaimer":"Este formulario no es una historia clínica. No envíes diagnósticos, resultados de pruebas ni otros datos de salud que la solicitud no necesite. Los datos de salud son una categoría especial en el RGPD.","section.patient":"Paciente","name":"Nombre","birth_date":"Fecha de nacimiento","phone":"Teléfono","email":"Correo electrónico","section.visit":"Esta visita","first_visit":"¿Es tu primera visita?","first_visit.yes":"Sí","first_visit.no":"No","reason":"¿Por qué vienes?","medications":"¿Tomas alguna medicación habitual que la clínica deba conocer?","medications.yes":"Sí","medications.no":"No","medication_note":"¿Qué medicamentos? Déjalo en blanco si la visita no necesita la lista.","section.emergency":"Contacto de emergencia","emergency_name":"Nombre","emergency_phone":"Teléfono","section.consent":"Consentimiento","consent_health":"Acepto que se traten los datos de salud que indico aquí para responder a mi solicitud."},"fr":{"title":"Formulaire d’admission du patient","lede":"Informations pour une première visite à la clinique. Omettez tout ce dont la visite n’a pas besoin.","submit":"Envoyer","thanks":"Envoyé. Merci.","file_too_big":"Jusqu’à 3 fichiers, 5 Mio chacun et 10 Mio au total.","error":"Envoi impossible. Veuillez réessayer.","disclaimer":"Ce formulaire n’est pas un dossier médical. N’envoyez pas de diagnostic, de résultat d’analyse ni d’autre donnée de santé inutile pour la demande. Les données de santé sont une catégorie particulière au sens du RGPD.","section.patient":"Patient","name":"Nom","birth_date":"Date de naissance","phone":"Téléphone","email":"E-mail","section.visit":"Cette visite","first_visit":"Est-ce votre première visite ici ?","first_visit.yes":"Oui","first_visit.no":"Non","reason":"Pourquoi venez-vous ?","medications":"Prenez-vous un traitement régulier que la clinique doit connaître ?","medications.yes":"Oui","medications.no":"Non","medication_note":"Quels médicaments ? Laissez vide si la visite n’a pas besoin de la liste.","section.emergency":"Contact d’urgence","emergency_name":"Nom","emergency_phone":"Téléphone","section.consent":"Consentement","consent_health":"J’accepte que vous traitiez les informations de santé que je donne ici pour répondre à ma demande."},"pt":{"title":"Formulário de admissão de paciente","lede":"Dados para a primeira consulta numa clínica. Omita o que a consulta não exigir.","submit":"Enviar","thanks":"Enviado. Obrigado.","file_too_big":"Até 3 ficheiros, 5 MiB cada e 10 MiB no total.","error":"Não foi possível enviar. Tente novamente.","disclaimer":"Este formulário não é um registo clínico. Não envie diagnósticos, resultados de exames nem outros dados de saúde que não sejam necessários para o pedido. Os dados de saúde são uma categoria especial no RGPD.","section.patient":"Paciente","name":"Nome","birth_date":"Data de nascimento","phone":"Telefone","email":"Email","section.visit":"Esta consulta","first_visit":"É a sua primeira consulta aqui?","first_visit.yes":"Sim","first_visit.no":"Não","reason":"Qual o motivo da consulta?","medications":"Toma medicação regular que a clínica deva conhecer?","medications.yes":"Sim","medications.no":"Não","medication_note":"Que medicamentos? Deixe em branco se a consulta não precisar da lista.","section.emergency":"Contacto de emergência","emergency_name":"Nome","emergency_phone":"Telefone","section.consent":"Consentimento","consent_health":"Aceito que tratem os dados de saúde que indico aqui para responder ao meu pedido."},"hi":{"title":"मरीज़ पंजीकरण फ़ॉर्म","lede":"क्लिनिक की पहली विज़िट के लिए जानकारी। जो विज़िट के लिए ज़रूरी न हो, उसे छोड़ दें।","submit":"भेजें","thanks":"भेज दिया गया। धन्यवाद।","file_too_big":"अधिकतम 3 फ़ाइलें, हर फ़ाइल 5 MiB तक और कुल 10 MiB।","error":"भेजा नहीं जा सका। कृपया फिर से कोशिश करें।","disclaimer":"यह फ़ॉर्म मेडिकल रिकॉर्ड नहीं है। निदान, जाँच के नतीजे या अन्य स्वास्थ्य विवरण न भेजें जिनकी इस अनुरोध के लिए ज़रूरत नहीं है। स्वास्थ्य डेटा GDPR में विशेष श्रेणी है।","section.patient":"मरीज़","name":"नाम","birth_date":"जन्म तिथि","phone":"फ़ोन","email":"ईमेल","section.visit":"यह विज़िट","first_visit":"क्या यह यहाँ आपकी पहली विज़िट है?","first_visit.yes":"हाँ","first_visit.no":"नहीं","reason":"आप किस कारण आ रहे हैं?","medications":"क्या आप नियमित रूप से कोई दवा लेते हैं जिसके बारे में क्लिनिक को पता होना चाहिए?","medications.yes":"हाँ","medications.no":"नहीं","medication_note":"कौन-सी दवाएँ? अगर विज़िट के लिए सूची ज़रूरी नहीं है तो खाली छोड़ें।","section.emergency":"आपातकालीन संपर्क","emergency_name":"नाम","emergency_phone":"फ़ोन","section.consent":"सहमति","consent_health":"मैं सहमत हूँ कि मेरे अनुरोध का जवाब देने के लिए आप यहाँ दी गई मेरी स्वास्थ्य संबंधी जानकारी को प्रोसेस करें।"},"ja":{"title":"初診受付フォーム","lede":"クリニック初診のための情報です。受診に不要なことは記入しないでください。","submit":"送信","thanks":"送信しました。ありがとうございます。","file_too_big":"ファイルは3つまで、1つ5 MiB、合計10 MiBまでです。","error":"送信できませんでした。もう一度お試しください。","disclaimer":"このフォームは医療記録ではありません。依頼に必要のない診断結果、検査結果、その他の健康に関する詳細情報は送信しないでください。健康データは、GDPRにおける特別なカテゴリーに該当します。","section.patient":"患者","name":"お名前","birth_date":"生年月日","phone":"電話番号","email":"メールアドレス","section.visit":"今回の受診","first_visit":"当院の受診は初めてですか?","first_visit.yes":"はい","first_visit.no":"いいえ","reason":"受診の理由","medications":"クリニックが知っておくべき常用薬はありますか?","medications.yes":"はい","medications.no":"いいえ","medication_note":"どの薬ですか?受診に一覧が不要な場合は空欄のままにしてください。","section.emergency":"緊急連絡先","emergency_name":"お名前","emergency_phone":"電話番号","section.consent":"同意","consent_health":"ご依頼にお答えいただくため、ここに記入した健康に関する情報が処理されることに同意します。"},"de":{"title":"Formular für die Patientenaufnahme","lede":"Angaben für den ersten Termin in einer Praxis. Lassen Sie alles weg, was für den Termin nicht nötig ist.","submit":"Senden","thanks":"Gesendet. Vielen Dank.","file_too_big":"Bis zu 3 Dateien, je 5 MiB und insgesamt 10 MiB.","error":"Senden fehlgeschlagen. Bitte versuchen Sie es erneut.","disclaimer":"Dieses Formular ist keine Patientenakte. Senden Sie keine Diagnosen, Befunde oder andere Gesundheitsangaben, die für die Anfrage nicht nötig sind. Gesundheitsdaten sind nach der DSGVO besondere Kategorien personenbezogener Daten.","section.patient":"Patient","name":"Name","birth_date":"Geburtsdatum","phone":"Telefon","email":"E-Mail","section.visit":"Dieser Termin","first_visit":"Sind Sie zum ersten Mal bei uns?","first_visit.yes":"Ja","first_visit.no":"Nein","reason":"Weshalb kommen Sie?","medications":"Nehmen Sie regelmäßig Medikamente, von denen die Praxis wissen sollte?","medications.yes":"Ja","medications.no":"Nein","medication_note":"Welche Medikamente? Leer lassen, wenn die Liste für den Termin nicht nötig ist.","section.emergency":"Notfallkontakt","emergency_name":"Name","emergency_phone":"Telefon","section.consent":"Einwilligung","consent_health":"Ich willige ein, dass Sie die hier angegebenen Gesundheitsdaten verarbeiten, um meine Anfrage zu beantworten."}}</script>
<script>
function mountCaptcha(node, siteKey) {
if (!node || !siteKey) return () => {};
let disposed = false;
let widget;
function render() {
if (disposed || !window.turnstile) return;
window.turnstile.ready(() => {
if (disposed) return;
widget = window.turnstile.render(node, { sitekey: siteKey, language: node.dataset.language || document.documentElement.lang || "auto" });
node.dataset.widgetId = widget;
});
}
if (window.turnstile) render();
else {
let script = document.querySelector('script[src^="https://challenges.cloudflare.com/turnstile/v0/api.js"]');
if (!script) {
script = document.createElement("script");
script.src = "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";
script.async = true;
document.head.appendChild(script);
}
script.addEventListener("load", render, { once: true });
}
return () => { disposed = true; if (widget !== undefined) window.turnstile?.remove(widget); };
}
function resetCaptcha(form) {
const widget = form.querySelector("[data-turnstile]")?.dataset.widgetId;
if (widget !== undefined) window.turnstile?.reset(widget);
}
(function () {
var MAX = 5242880;
var form = document.getElementById("fg-form");
var packNode = document.getElementById("fg-labels");
if (!form || !packNode) return;
var pack = JSON.parse(packNode.textContent);
function code() {
var q = new URLSearchParams(location.search).get("lang") || "";
// ?lang= preview override, then the form language chosen when copying, then the page and browser.
var raw = (q || form.getAttribute("data-lang") || document.documentElement.lang || (navigator.language || "en")).slice(0, 2).toLowerCase();
return pack[raw] ? raw : "en";
}
function apply() {
var dict = pack[code()];
document.querySelectorAll("[data-i18n]").forEach(function (node) {
var key = node.getAttribute("data-i18n");
if (key && typeof dict[key] === "string") node.textContent = dict[key];
});
}
apply();
// CSS hides a conditional field; a hidden field still sends what was typed in it. Switched off, it does not.
function syncShown() {
form.querySelectorAll("[data-show-if]").forEach(function (row) {
var watch = form.elements[row.getAttribute("data-show-if")];
var off = !watch || watch.value !== row.getAttribute("data-show-equals");
row.querySelectorAll("input, select, textarea").forEach(function (control) { control.disabled = off; });
});
}
form.addEventListener("change", syncShown);
syncShown();
var status = form.querySelector("[data-status]");
form.addEventListener("submit", function (event) {
event.preventDefault();
var dict = pack[code()];
var body = new FormData(form);
var files = Array.from(body.values()).filter(function (value) { return value instanceof File && value.size; });
if (files.length > 3 || files.some(function (file) { return file.size > MAX; }) || files.reduce(function (sum,file) { return sum + file.size; },0) > 10 * 1024 * 1024) {
if (status) status.textContent = dict.file_too_big;
return;
}
var button = form.querySelector("button[type=submit]");
if (button) button.disabled = true;
fetch(form.action, { method: "POST", headers: { Accept: "application/json" }, body: body })
.then(function (response) { return response.json(); }).then(function (result) {
if (status) status.textContent = result && result.success ? dict.thanks : ((result && result.message) || dict.error);
}).catch(function () { if (status) status.textContent = dict.error; })
.finally(function () { if (button) button.disabled = false; resetCaptcha(form); });
});
mountCaptcha(form.querySelector("[data-turnstile]"), form.dataset.sitekey);
})();
</script>
</body>
</html>
Code for other frameworks
How to get more requests
- Send the link only after a visit is booked, so the form is filled in by people who are actually coming.
- Explain why each question is asked; patients answer more completely when they understand the reason.
- Leave out every field you would not use at the visit. A shorter form is finished more often.
Answer every request
Intake forms are worth reading before the patient arrives. Statuses in the Formgong inbox show which ones the doctor has seen, and the daily Telegram reminder catches forms that came in but were never opened.
Questions and answers
Can I ask for the full medical history?
You can add fields, but think twice: health data is special-category data under the GDPR, and the safest form asks only what the visit needs.
Is this form a medical record?
No. Copy what you need into your clinic's record system. Formgong is a delivery channel, not a patient file.
Can patients upload documents?
The template has no file field on purpose. If you add one, enable attachments and Turnstile, and ask only for documents you really need.