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
Gaurav VishwakarmaGaurav Vishwakarma 

Country Picklist on Account VF page

Hi Friends ,

I having a urgent issue , please help me ..... I want to enable the country picklist in my account vf page , I have already enabled in my sandbox and it was visible in other object like Contact , but not on VF . Please let me know if you have any question regarding this .
Please reply soon .

Id : gvishwakarma@kloudrac.com
Deepak GulianDeepak Gulian
<apex:inputField value="{!Account.MailingCountryCode}"/>
<apex:inputField value="{!Account.MailingStateCode}"/>
Try this!
 
Vijay NagarathinamVijay Nagarathinam
Hi Gaurav,

use inputfield

<apex:inputfield value="{!Location.state}"/>

Otherwise refer the below link you get some idea.

https://www.sundoginteractive.com/blog/displaying-dependent-picklist-fields-on-a-visualforce-page

Let me know if you need any help regarding this.

Thanks,
Vijay
Mahendra Singh 19Mahendra Singh 19
Hi Gaurav,

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

If you created any instance of Account in Apex class then use that instance instead of Account.
can contact msingh@kloudrac.com