Using State and Country Picklists in Web-to-lead form
|Knowledge Article Number||000213272|
|Description||Sometimes a lead submitted by customer via Web to Lead form might not get saved as a Lead, but the system admin receives an email with the following error message:
Error: Salesforce could not create this lead because of the reason listed below. For more information about this error or help with Web-to-Case-Lead, please contact Customer Support.
Reason: A country must be specified before specifying a state value for field
This error message indicates that 'State and Country as a Picklist' is enabled in your Org.
Also, when 'State and Country as a pick list' is enabled in an Org, the standard 'Country' field acts as a Controlling Pick List and 'State' field acts as Dependent Pick List. However, when the same fields are used on W2L form, this dependency is not carried forward. This is the reason that the State field would show the value of all States available in the Org, irrespective of the 'Country' selected above.