function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
md1md1 

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) 
BulentBulent

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.