[SalesForce] Web to lead form error message

I am using web to lead form to enter data on a form externally.
Whenever the form i submitted, leads are created in salesforce.

Now, i want to have a check for duplicates based on some fields, say first name and last name.

When the form is submitted with duplicate first name and last name, i want to show error message on the form saying that the lead exists in system.

Can you please guide me on how we can achieve this?
Can we show real time error messages on web to lead form?

Thank you.

Best Answer

The Web-to-Lead form is actually not directly connected to your org. Instead, the Web-to-Lead form submits the data into a queue via the POST'ed form, and it is asynchronously sent to your org at a later point in time. Using this design, salesforce.com can continue to capture leads for your site even during maintenance, so that you don't miss any leads whenever there's a service interruption, outage, or scheduled downtime. When the queue is empty, the leads appear in your org within seconds, but during outages or peak usage, the delivery may take longer--either way, the form doesn't communicate anything useful back to the calling website, can't display errors, or do anything directly related to your org's records. As far as your leads are concerned, the service is always available to capture their information.

Related Topic