So create a hidden field with the name country
and value united states
.
You had your answer already 😉
Hi Nick,
I must be missing something as I keep getting the error message below. Can you confirm the field name and info I entered into the plugin from this screenshot is correct? https://www.evernote.com/shard/s44/sh/b05cbcc9-1e30-444c-9d52-77d314b52a89/5f36f018c8a1a23b4150021e7baee846
————————————-
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: Invalid country specified for field
Lead Capture Page: Not available.
Record Information:
ReferrerName = Ben
city = Fort Collins
company = PDS
country_code = United States
debug = 0
description = Test
email = bdevries21@msn.com
encoding = UTF-8
encoding = UTF-8
first_name = Benjamin
last_name = DeVries
lead_source = Lead from PDS
oid = 00Do0000000Irc7
orgid = 00Do0000000Irc7
phone = 9704027135
state = Colorado
street = 4114 Timberline road
title =
zip = 80525
To incorporate this lead into salesforce.com you can key in the data above.
If you have any questions, please click on Support at the top right of any page within salesforce.com.
Customer Support
salesforce.com
country_code would imply US
, not United States
— but I don’t see country_code as a standard field so I’m guessing that’s your issue (unless country_code is a custom field, in which case the name is missing the __c suffix).
I think you want country = United States
I will delete the country_code field I created. I believe the standard field is “country”. Do I add country = united states in the “value” field? Sorry, bit of a novice! -Ben
Name = country
Value = United States
Here is what I have currently have and still receive the error message. Do I need to change the order? Thanks again for all your help!
https://www.evernote.com/shard/s44/sh/638416c2-28c3-4c73-924e-146bfeb54855/2a8cbaa1ff98dbf8b0ad44234618ae45
Try country
(lowercase).
Order should be irrelevant, but you can certainly try re-ordering it.
Required is irrelevant for hidden fields (they are always passed to the API if enabled).
As to what SalesForce is expecting for that field (unites states, United Staes, US, USA) – that’d be a question for SF support — or just try things until it works.
The lowercase worked! Thanks! -Ben