+ Start a Discussion

Using standard web to lead with Sites - best practices and de-duping

Two questions for using standard Web-to-lead with Sites:


1. Are there any best practices defined for using standard web-to-lead with sites?


2. Is there a way to add de-duplication logic using the standard web-to-lead so that the mapping is still taken from the Web-to-lead mapping page but we have our de-duping logic sit in between, maybe in a controller?



Best Answer chosen by Admin (Salesforce Developers) 

if you are using sites and visualforce why use standard web2lead code?

Create a visualforce page which understands your data structure and renders it properly, and respects your validation rules


In terms of de-dupe you can write your own customer controller for this visualforce page and first check the duplicate existence and then decide create a record or not.