Salesforce has made some changes to the Web-to-Case (W2C) and Web-to-Lead (W2L) forms. To improve the performance of the functionality of these forms, the endpoint that receives the W2C/W2L form submission data from company websites to create leads/cases in Salesforce will be replaced with a new endpoint with the Summer ’17 release.
Websites using the W2C/W2L forms will cease to create new cases and/or leads within customers’ Salesforce orgs if the websites are not updated with the new endpoint URL by the Summer ’17 release.
Customers using either or both of these functionalities will need to update the W2C/W2L HTML code in their websites by the Summer ‘17 release. As the new endpoint URL is already available, customers are strongly encouraged to complete these updates as soon as possible to take advantage of the improved functionality performance.
The W2C/W2L HTML code generator functionality will be updated to reference the new endpoint URL with the Summer ’17 release. As such, W2C/W2L form HTML code generated from the Summer ’17 or later HTML code generator will already include the new endpoint and websites using this HTML code will not be impacted by this change.
Update your HTML Code
To make the HTML code update on the websites, your website administrator will need to access the code for the forms on the website and make the following changes:
- Do a global search across the website HTML code for either of these code snippets:“https://www.salesforce.com/servlet/servlet.WebToLead”
- Replace the “www” with “webto” so that the “form action” URLs in the Web-to-Case and Web-to-Lead HTML code display as such:“https://webto.salesforce.com/servlet/servlet.WebToLead”
Test your new forms
One of the best test editors that I have come across is JSFiddle Test Editor. Follow these steps to test your new Salesforce forms:
- Go to JSFiddle Test Editor
- Copy and paste your HTML code into the interface and run it
- Enter the new lead or case information into the forms and submit
- Validate the data in your Salesforce instance