-1

I am using Below code to get the Country and State picklist on Account.

 <apex:inputfield value="{!Account.Billingcountrycode}" ></apex:inputfield>
 <apex:inputfield value="{!Account.Billingstatecode}" </apex:inputfield>

is it possible to use BillingCity based on selected Billingstatecode. I have tried with Billingcitycode but its is not working.

  • 1
    Your question is not clear. If you mean display Billing City, then use BillingCity, if you mean show a lot of cities based on the state code, you will have to roll your own as SF does not have a list of all cities by state. – Eric Sep 6 '17 at 14:39
2

There is no out-of-the-box picklist for City the way there is one for State/Country. You must roll your own solution if you need to have cities be automatically determined by the country/postal combination.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.