You’ve built dozens of contact forms. Name, email, phone, a message box, a submit button wired to whatever form plugin the theme ships with. On a bakery site, that’s fine. On a site for a therapy practice, that same form can turn into a liability the moment a visitor types “I’ve been struggling with panic attacks since my divorce” into the message field.
That sentence, attached to a real name and email address, is health information tied to an identifiable person. If the clinic is a HIPAA covered entity, everything that touches the submission now matters: the form service, the hosting, the notification email, even the analytics script sitting in your footer. Most of the fixes are small and live squarely in your territory as the person who builds the front end. Here’s what to change before a healthcare client’s site goes live.
Why a Plain Contact Form Turns Into a HIPAA Problem
HIPAA protects what it calls protected health information (PHI): health details linked to someone who can be identified. A contact form for a dental office or a counseling practice collects identifiers by design. The moment the visitor adds context about a condition, a medication, or the reason they’re booking, you’ve got PHI moving through your stack.
You don’t control what people type. Label a textarea “General questions” and someone will still describe their symptoms in it. So the realistic goal isn’t “no PHI ever touches the form.” It’s “if PHI lands here, it travels and rests only in places that are allowed to hold it.”
So you’re not just styling inputs anymore. You’re deciding where data goes after the click.
Who Owns the Risk: The Clinic, the Vendors, and You
The clinic is the covered entity, and it carries primary responsibility. But any company that stores, processes, or transmits PHI on the clinic’s behalf becomes a business associate, and that chain can include your form service, your email delivery provider, your hosting company, and, if you maintain the site and can see submissions, possibly you.
This is where freelance projects quietly go wrong. Plenty of popular form builders and chat widgets simply won’t sign the agreements a healthcare client needs, and a vendor that won’t commit in writing shouldn’t receive PHI, however nice its editor is.
Be honest with yourself about scope, too. A form that collects a name and a callback number is a website task. A form that grows into intake questionnaires, insurance card uploads, appointment history, and a login area is a different animal: you’re now building an application that stores records. That’s usually the point where clinics stop stacking plugins and bring in a team that does hipaa custom software development, with access controls, audit logging, and hosting designed for PHI from day one. Your job is to notice when a “quick form tweak” has crossed that line and say so before launch, not after.
Audit the Form Stack Before You Touch Markup
Before redesigning anything, map every hop a submission takes. Under HIPAA, a covered entity can share PHI with a business associate only after getting written satisfactory assurances, usually a business associate agreement (BAA), that the vendor will safeguard it. So the audit question for each hop is simple: will this vendor sign one?
-
Form handler: Does the vendor offer a BAA on your plan tier? Red flag: BAA only on enterprise plans the client isn’t paying for.
-
Hosting / server: Where do submissions get stored, and for how long? Red flag: entries saved in a CMS database with no access controls.
-
Email delivery: Does the notification email include the message body? Red flag: full submission sent to a shared Gmail inbox.
-
Analytics and tags: Which scripts load on the form and thank-you pages? Red flag: ad pixels firing on submit events.
-
Spam protection: Does the CAPTCHA service see form contents? Red flag: third-party scripts reading field values.
-
Backups: Do site backups include form entries? Red flag: backups copied to a personal cloud drive.
Hand the client this map as a short document. It also proves you raised the issues if they later pick a cheaper path.
Rewrite the Form Markup
Most front-end fixes are boring, which is good. Start with three habits:
-
Always submit with method=”post”. A GET form puts every field into the URL, and URLs end up in server logs, browser history, and analytics reports.
-
Post to an endpoint you or the client control, not straight to a third-party service that hasn’t signed a BAA.
-
Ask for less. If the practice only needs a callback, drop the free-text box entirely or replace it with a short dropdown of non-clinical options like “New patient” or “Billing question”.
Here’s a lean version of a request form that follows those rules:
<form action="/contact" method="post">
<label for="name">Full name</label>
<input id="name" name="name" type="text" autocomplete="name" required>
<label for="phone">Best phone number</label>
<input id="phone" name="phone" type="tel" autocomplete="tel" required>
<label for="member-id">Insurance member ID (optional)</label>
<input id="member-id" name="member_id" type="text" autocomplete="off">
<label for="topic">What is this about?</label>
<select id="topic" name="topic">
<option>New patient appointment</option>
<option>Existing appointment</option>
<option>Billing question</option>
</select>
<p>Please don't include medical details here. We'll ask on the phone.</p>
<button type="submit">Request a call</button>
</form>
A note on autocomplete=”off”: it’s a hint, and browsers don’t always honor it. It’s worth adding on fields like member IDs because clinic front desks often share computers, but don’t treat it as a security control. The real protection is what happens on the server.
Keep PHI Out of URLs
Check every place a value could leak into a query string. Multi-step forms that pass answers between pages with ?step=2&concern=anxiety, search boxes on a “find a provider by condition” page, and thank-you redirects like /thank-you?service=ivf-consult all expose information you’d never knowingly publish. Keep state in the POST body or a server session instead.
Send Submissions to a Server You Control
Once the form posts to your own endpoint, you decide what gets stored and what gets forwarded. The most common leak at this stage isn’t hackers. It’s the notification email: the full message body lands in a front-desk inbox, gets forwarded to a personal phone, and sits there for years.
A safer pattern stores the submission in a protected system and sends staff a notification that contains no health details at all:
app.post("/contact", express.urlencoded({ extended: false }), async (req, res) => {
// saveSubmission writes to storage covered by the clinic's BAA
const id = await saveSubmission(req.body);
await sendMail({
to: "[email protected]",
subject: "New contact request",
text: `New request #${id}. Log in to the patient system to view it.`
});
res.redirect(303, "/thank-you");
});
saveSubmission and sendMail are placeholders for whatever storage and mail service the client has approved. Two details matter more than the framework. First, the email says a request exists without saying what it’s about. Second, nothing here logs req.body to the console, because application logs are one more copy of PHI that nobody remembers to protect.
Keep Pixels and Analytics Off Form Pages
This is the section that should change how you build healthcare sites. In December 2022, HHS’s Office for Civil Rights published a bulletin on tracking technologies, and its March 2024 update states that trackers on user-authenticated pages generally have access to PHI, which makes sharing that data with a tracking vendor a disclosure that needs a HIPAA basis.
The legal picture shifted after that. On June 20, 2024, a federal court in Texas ruled in American Hospital Association v. Becerra that OCR had overstepped on one specific point: treating an IP address plus a visit to a public, unauthenticated page as PHI. That portion of the guidance was vacated, and OCR dropped its appeal that August. The rest of the bulletin still stands.
Notice what the ruling didn’t cover. A visitor filling out a form about their condition isn’t just browsing a public page; they’re handing over identifiable health details. The real-world cost of getting this wrong is well documented:
-
Advocate Aurora Health notified roughly 3 million patients in October 2022 that tracking pixels on its patient portal and scheduling tools may have sent appointment details to Meta and Google.
-
In February 2023, the FTC announced a $1.5 million civil penalty against GoodRx, alleging it shared users’ health data with Facebook, Google, and others for advertising. GoodRx isn’t a HIPAA covered entity, which shows regulators will reach for other laws when HIPAA doesn’t apply.
In practice: don’t load ad pixels, session replay tools, or heatmaps on form pages, thank-you pages, or anything behind a login. If the clinic needs conversion tracking, count submissions server-side and report aggregate numbers, or use an analytics vendor that will sign a BAA.
Rethink the Thank-You Page
Designers love a specific thank-you page per form because it makes conversion tracking easy. On a healthcare site, that same pattern can leak more than you expect. A URL like /thanks/eating-disorder-intake tells every script on the page, and every analytics dashboard logging page views, exactly what the visitor was seeking help for.
Use one generic confirmation page for all forms. Keep the copy warm and useful (what happens next, how fast the clinic responds, a phone number for urgent issues) without echoing back anything the visitor typed. And don’t display submitted fields on the confirmation screen “for their records”; that screen can end up in a screenshot, a shared device’s history, or a browser cache.
A Pre-Launch Checklist for Healthcare Forms
Run through this before you hand the site over:
1. Every vendor that touches submissions has signed a BAA with the clinic, or no longer receives submissions.
2. All forms use POST over HTTPS, and no field values appear in any URL.
3. Free-text fields are removed or clearly labeled to discourage medical details.
4. Notification emails contain no submitted content, only a pointer to a secure system.
5. No ad pixels, session recorders, or heatmaps load on form, thank-you, or logged-in pages.
6. Server and application logs don’t record request bodies.
7. The client knows where submissions are stored, who can see them, and how long they’re kept.
Conclusion
A HIPAA-ready contact form doesn’t need exotic tech. It needs fewer fields, a POST to an endpoint you control, vendors with signed BAAs, notification emails with no health details, and zero tracking scripts on the pages where people describe their health. Start your next healthcare project by mapping where a submission travels, then cut every hop that can’t legally hold PHI. And when a client asks for intake portals or file uploads, flag it as an application project early, so the site you launch doesn’t become the weak link.
