Questions tagged [country-and-state]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
2answers
729 views

Retrieve Translated country picklist values

I wanted a Metadata API to get the Spanish translations of Address Country picklist. Using Translations type or Address doesnt help me get the values.
4
votes
2answers
2k views

Country and State picklist in apex

I want to check if state exists or not with a country in State and Country Picklist feature supported by Salesforce. I want to do this in Apex. How can I do this?
10
votes
1answer
2k views

How to write Address.settings in order to implement Country Picklists via Metadata API (eclipse)?

In order to implement Country Picklists on standard address fields I'm following the documentation here: https://help.salesforce.com/HTViewHelpDoc?id=admin_state_country_picklists_overview.htm&...
1
vote
2answers
209 views

State Picklists ignoring StyleClass Directive

I'm trying to style my state picklist and it looks like the functionality that allows statecode/countrycode to be dependent on eachother is clobbering the styleClass that I specify. When I inspect the ...
2
votes
2answers
317 views

Tough spot: updated State/Country fields to picklists but now code coverage is too low!

I recently went through the process of updating my state and country fields to picklists using the standard Salesforce tools. Perhaps foolishly I completed this update directly in production. However ...
1
vote
1answer
268 views

How can we convert a captured IP address to a country location when importing lead info from an external form, like on Unbounce?

We are capturing leads from our Unbounce landing pages, that have a Salesforce integration. Unfortunately they only provide the IP and we want to record the lead's country. How can we convert IP to ...
0
votes
1answer
485 views

How to default contact's country in mailing address based on record type

Hi we have a few record type that is separate by country. Is there a way that when I am creating a new Account record, I want to default the Country value based on the record type? For example: if I ...
2
votes
1answer
2k views

Required field validation rule for [Billing|Shipping]StateCode with State & Country picklists enabled?

When using State & Country picklist functionality, is it possible to write a Validation Rule that targets the Billing State or Shipping State fields to make them required but only when the Country ...
5
votes
1answer
1k views

Are State and Country Picklist values enforced for data inserted through the API?

We are going to be turning on State/Country picklists soon for Leads and Accounts. There is currently a process for us in place that inserts new Leads using the SForce SOAP Api). Data that is ...
6
votes
3answers
2k views

How to support State and Country picklists from same code that supports picklists disabled?

It would seem that it is not possible to support picklists enabled and picklists not enabled from the same Apex Code if we are writing to the State or Country. Consider the following: oAccount[0]...
1
vote
1answer
4k views

State and Country Picklist Causing Issues with Import

I'm tried to import Accounts into an instance with Country Picklists enabled and running into issues. If the country of the record is not the country set as Default in SFDC State and Country Picklist ...
4
votes
3answers
3k views

How do I delete unwanted values from the new State/Country picklists?

As an attempt to solve this problem, I've copied the various values in the standard country picklist field to a backup text field so we could go back and clean up later. Now I'm trying to delete all ...
2
votes
1answer
358 views

Country/State Picklist Enable Disable fuctionality

I want to write one query on Country/State picklist that if ( Country/State pick list == True) use this Query else this one Is there any way to find that Country/State Pick list status value? any ...
9
votes
2answers
10k views

Country & State picklist as custom fields

Is the State and Country picklists available as custom fields? Can I define a custom field of type Country and use the 'built in' Country values?

1
2