How does Web-to-Case facilitate inbound support lead capture directly from company websites?
Answer
Basics: Add a form to your public site with fields such as name, email, subject and description. When submitted, Salesforce creates a case with Origin = Web, runs assignment and auto-response rules, and optionally links to a matching contact by email.
How it works:
- Setup > Web-to-Case > Enable; set default case origin, default response template and default owner behavior.
- Click Generate the HTML, pick fields, set the return URL.
- Paste the HTML into your website.
- Submission posts to the Salesforce servlet; the case is created, the assignment rule runs, and the auto-response is sent.
- Salesforce can match Contact by email (Web Email to Contact).
Advanced / deep dive: Limits: a daily cap on Web-to-Case submissions (5,000 per 24 hours by default; excess is held pending or dropped, verify current handling and raising the limit through Support). The form does not support file attachments, and spam protection is limited, so add reCAPTCHA or a server-side honeypot and consider your own backend that calls the REST API (or an Experience Cloud site or Apex REST on a Site) for richer validation, attachments and no per-day constraints. Security: anonymous submissions mean no authentication; do not accept sensitive data. The "case origin" and default priority can be hidden fields. Custom fields use their field IDs as input names.
Code / config example:
<form action="https://webto.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" method="POST">
< = = =>
Name
Email
Subject
Description