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
Soujanya USoujanya U 

Got Msg: Salesforce Could Not Create This Lead

Hello, 

I am new to Salesforce development and have a question on Web to Lead.

We have been receiving lot of spam through our Web to Lead form. To tackle this we added some front end validation and also added a trigger to avoid capturing that Lead, in case front end validation fails. Now, we received an email from Salesforce Support that "Salesforce could not create this Lead".

Could you please let me know my best options to avoid saving spam mails into Lead object.

Thank You!



 
AbhishekAbhishek (Salesforce Developers) 
This error message indicates that 'State and Country as a Picklist' are enabled in your organization. If the Web-to-Lead form contains standard 'State' and 'Country' fields and the submitter fills the value in 'State' but does not mention the 'Country,' then this error message will be sent to the System Administrator.


Try the solution as mentioned in the below blog,

https://help.salesforce.com/articleView?id=000328733&type=1&mode=1


I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.
John KlokJohn Klok
Hello Soujanya,

You can refer this artical for resolve the issue.

URL: https://help.salesforce.com/articleView?id=000334330&type=1&mode=1

Kindly mark this as solved if the reply was helpful.

Thanks.