Support » Plugin: Brilliant Web-to-Lead for Salesforce » A country must be specified before specifying a state value

  • Resolved Benjamin

    (@bdevries)


    Hello, I am receiving this message when submitting a form through the plugin. Any Help would be greatly appreciated. The lead form is set up at http://www.pds-co.com/nuvolalead. I have a feeling it has something to do with country as when I include the country in the field and type it in correctly as “united states” it goes through. However, I would like to either not include this as a Field, or have it automatically enter United States as a hidden field (since this is where all the leads will be coming from anyways).

    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
    Lead Capture Page: Not available.

    https://wordpress.org/plugins/salesforce-wordpress-to-lead/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    So create a hidden field with the name country and value united states.

    You had your answer already 😉

    Thread Starter Benjamin

    (@bdevries)

    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

    Plugin Author Nick Ciske

    (@nickciske)

    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

    Thread Starter Benjamin

    (@bdevries)

    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

    Plugin Author Nick Ciske

    (@nickciske)

    Name = country
    Value = United States

    Thread Starter Benjamin

    (@bdevries)

    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

    Plugin Author Nick Ciske

    (@nickciske)

    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.

    Thread Starter Benjamin

    (@bdevries)

    The lowercase worked! Thanks! -Ben

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘A country must be specified before specifying a state value’ is closed to new replies.