function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
S SaiS Sai 

how to display selected country account in visualforce

Hi,
how to display selected country account in visualforce.

Here country's are in picklist when i am selecting the country display to the account's in picklist (country based account ) and click the submit button now display the account based contact details 

Thanks
 
Puneet KhoslaPuneet Khosla
You need to run a SOQL and check for the value of Country (Address fields are composite fields, so if you want to check in Billing Address, then it would be BillingCountry).

Then fill the select list with the Account names as label and id as value and  then you can query Contacts based on Account id