How to Set Up and Use Web-to-Case in Salesforce
In today’s digital age, businesses receive customer inquiries through various channels, including phone, email, and web forms. Efficiently managing these inquiries is crucial to delivering exceptional customer service. Salesforce Web-to-Case is a powerful feature that allows businesses to capture customer support requests directly from their website and automatically convert them into cases in Salesforce.
By automating case creation, Web-to-Case eliminates manual data entry, reduces response times, and enhances customer satisfaction. This seamless process ensures that every support request is logged, tracked, and handled efficiently.
In this blog, we’ll explore Salesforce Web-to-Case, how it works, and its impact on customer support. We’ll provide a step-by-step guide to configuring Web-to-Case in Salesforce, ensuring a smooth setup for your business. Additionally, we’ll share best practices for effective case management, helping you streamline support processes, improve response times, and enhance customer satisfaction. Let’s dive in and discover how you can optimize your customer service with Salesforce Web-to-Case!
What Is Web-to-Case in Salesforce?
Web-to-Case is a Salesforce feature that enables businesses to collect customer support requests from a web form and create cases automatically in Salesforce. This allows companies to provide 24/7 support while ensuring that every inquiry is logged and tracked efficiently.
Key Benefits of Web-to-Case
- Automation – Eliminates manual data entry by automatically creating cases in Salesforce.
- Improved Customer Experience – Provides a seamless way for customers to submit support requests.
- Faster Response Times – Cases are instantly assigned to support teams, ensuring quick resolution.
- Consistent Data Collection – Captures all required information using a standardized form.
- Scalability – Handles large volumes of customer requests efficiently.
With Web-to-Case, businesses can handle up to 5,000 cases per day, making it ideal for organizations with high customer interaction.
How Does Web-to-Case Work?
When a customer submits a support request through a Web-to-Case form, Salesforce automatically captures the data and creates a case. The process follows these steps:
- A visitor fills out the Web-to-Case form on the company’s website.
- The form data is sent to Salesforce through a generated HTML form.
- Salesforce validates the data and creates a case in the system.
- Case Assignment Rules direct the case to the appropriate support team.
- The customer receives an automated email response confirming their request.
How to Configure Web-to-Case in Salesforce
Step 1: Enable Web-to-Case in Salesforce

- Log in to Salesforce.
- Go to Setup.
- In the Quick Find box, search for Web-to-Case.
- Click Web-to-Case Settings.
- Check the Enable Web-to-Case box.
- (Optional) Enable Show recaptcha for Web-to-Case to prevent spam submissions.
- Click Save.
Step 2: Create a Web-to-Case Form

- Go to Setup.
- Search for Web-to-Case in the Quick Find box.
- Click Web-to-Case HTML Generator.
- Select the fields you want to include in the form (e.g., Name, Email, Case Type, Description).
- Click Generate.
- Copy the HTML form code and embed it on your website.
Tip: If your website uses a CMS (like WordPress), you can paste the form code into a custom HTML block.
Step 3: Test the Web-to-Case Form
- Fill out the form on your website.
- Submit the request.
- Go to Cases in Salesforce and verify that the case was created correctly.
Example: Testing Web-to-Case Using Replit
To validate the functionality, a test was conducted using Replit, an online IDE that allows quick testing of HTML forms. The steps included:
- Creating an HTML file in Replit
- The Web-to-Case HTML Generator from Salesforce was used to generate the form.
- The generated form code was pasted into a Replit project.

- Filling out the form and submitting it
- Sample case details were entered, and the form was submitted.
- Verifying case creation in Salesforce
- After submission, Salesforce was accessed to check the Cases section.
- The newly submitted case appeared with the correct details.

- Key Takeaway: The Web-to-Case form successfully integrated with Salesforce, confirming that case creation was functioning as expected.
Best Practices for Web-to-Case
1. Use Validation Rules to Ensure Data Accuracy
Implement validation rules to prevent incomplete or incorrect case submissions. For example, require an email address before submitting the form.
2. Implement Spam Protection (reCAPTCHA)
Enable reCAPTCHA to prevent bots from submitting spam cases through the Web-to-Case form.
3. Customize Auto-Response Emails
Create Auto-Response Rules to acknowledge case submissions with a personalized email. This reassures customers that their request has been received.
4. Monitor Web-to-Case Usage Limits
Salesforce allows up to 5,000 Web-to-Case submissions per day. If you expect higher traffic, consider integrating with Salesforce Service Cloud or using API-based case creation.
5. Keep Your Web-to-Case Form Secure
- Avoid exposing sensitive Salesforce record IDs in the HTML code.
- Use HTTPS to protect form submissions.
Conclusion
Web-to-Case in Salesforce is a game-changer for businesses looking to streamline their support process. By capturing customer inquiries directly from the website and converting them into cases automatically, businesses can enhance efficiency, improve response times, and ensure that every customer issue is tracked and resolved.
By following best practices such as enabling spam protection, customizing auto-response emails, and using assignment rules, businesses can maximize the benefits of Web-to-Case.
