Questions tagged [country-and-state]
The country-and-state tag has no usage guidance.
18
questions with no upvoted or accepted answers
3
votes
1answer
56 views
Account History tracking shows codes instead of full names after enabling State/Country picklists
I'm seeing that changes made on an Account after we have enabled State & Country/Territory Picklists on our sandbox default to showing the shortcodes for Country & State. Isn't it possible to ...
3
votes
0answers
601 views
Lead.Country value is null in beforeInsert with state country picklist turned on
I have code called from the before update/before insert triggers that looks at the Country value, and if found or is changed, we call some custom code to find a matching record in a custom Territory ...
2
votes
1answer
161 views
Why does the DependentPicklists class returns empty Map when trying to output Country and State picklist?
We are implementing the DependentPicklists class found in another answer on this site. Our org has State and Country picklists enabled, so we are trying to get this to work using the Contact....
2
votes
0answers
179 views
Issue with Datacloud.FindDuplicates & County-State-Picklist & PURGE Data
We have a strange issue arising in the context of the Salesforce Standard Deduplication functionality. It happens only, when Country-State-Picklist are enabled and a record (Account) is set to a ...
1
vote
0answers
17 views
Additional geographical area on State
I'd like to add additional information on the State in Salesforce, for example the macro-area it belongs to, so that it can be used in any report, view, feature that make usage of an Address / State.
...
1
vote
2answers
2k views
Error: There's a problem with this state, even though it may appear correct. Please select a state from the list of valid states
I am updating records through batch class. I have state/Country picklist enabled for my ORG, however for few set of records BillingState picklist is having following values
i. UNKNOWN VALUE
...
1
vote
0answers
1k views
Find whether the state code is related to the Country code
When state/country picklists are enabled, in an apex class can i find whether the state code is related to the country code.
Currently if no check is done.
I'm getting the below error in the visual ...
1
vote
0answers
111 views
Mass Update And Mass Edit From List View clashes with State/Country Picklists
The following appears when I click on āMass Updateā in a list of recently created leads:
core.apexpages.exceptions.ApexPagesHandledException: Object type not accessible. Please check permissions and ...
1
vote
0answers
68 views
State and Country picklist scan result issue
I have used the option "Scan your org" in State and Country Picklists to get the address list and customization list (VF and APEX used) in that list one VF page is showing up which is not using city, ...
1
vote
0answers
299 views
Why is Serbia not among selectable countries in Salesforce.com?
So I decided to join Salesforce Partner Community, however, I can't complete my application as I'm from Serbia and there's no Serbia as an option among the list of available countries. Does anybody ...
0
votes
0answers
12 views
Country and state picklist with lightning web components
How can I capture the country and state picklist in lightning web component picklist input?
Please help me to give some guidance.
Thanks
Sunil Kr. Gupta
0
votes
0answers
36 views
Country/State Picklist Management through trigger
I am trying to map country and state from one custom object say 'User Submission' to Account's billing address. My custom object has more values of countries and states than standard Country/State ...
0
votes
0answers
56 views
Unable to convert a lead if country if country is not defalut country
few dacks back we have enabled country & state picklist values.
So, when trying to convert a lead with a country called Canada they are facing an issue. because currently, the default country is ...
0
votes
1answer
135 views
Add value to list of valid States
I added a new State for the Country 'Canada' in Setup -> State and Country/Territory Picklists. The State is 'BC' and StateCode is 'BC2'. See the image below for how it looks:
Now that 'BC' is a ...
0
votes
0answers
343 views
Find state from Area Code
Our leads come in with just a phone number. I am looking to populate a custom field for the Lead State based off of that area code. I have already added a custom formula field to populate the time ...
0
votes
0answers
342 views
State and Country Picklist on Visualforce page
I have a page which displays input fields from a fieldset on Opportunity object. The fieldset contains Country and State picklists which render properly.
The only problem is when the Opportunity ...
0
votes
0answers
602 views
Best Way to Populate Visualforce Picklists of Countries and States?
I am currently making a Visualforce Page for registration and I have both Country and State fields (both picklist) to populate. I have looked for resources online and I found out some possible ...
0
votes
0answers
1k views
Get state dependent picklist in apex when State and Country Picklists is enabled
I have enabled State and Country Picklists in my org. I am getting values in piclist. But the are not dependent. Like if i select country "India" i should get states only related to india. But it is ...