+ Start a Discussion
Sekhar SekharSekhar Sekhar 

How to get Country and Street standard pick list fields(Lead object) in visual force page

In my organization lead object Country and Street standard text fields are converted into standard pick list this is done successfully
My problem is when I am call these standard pick list fields (Country and Street) in visual force page
I did not get pick list field in vf page (I get Country and Street fields as a text fields)
How to get  Country and Street fields as a pick list fields

Hi Sekhar,
can you please share your code in order to help you better?

Pawan Kumar
Shiva RajendranShiva Rajendran
Hi Sekhar,
Basically at object level if you the country field is a text field and street field is a textarea .So if you refer in vf page using 
<apex:inputfield> you will find only textfield there.

GO through the below link for getting better ideas.


Also you easily create a selectlist out of this using custom code , which you have mentioned you already done.

Let me know if you need further help.

Thanks and Regards,
Shiva RV
Sukanya BanekarSukanya Banekar
You can use <apex:inputField> to show dependent picklist in both standard and custom controller
for custom controller you need to set property for e.g
public Account acc{get;set;}

acc= new Account(); // set this in constructor
<apex:inputfield value="{!acc.parentfield}"/>
<apex:inputfield value="{!acc.dependentfield}"/>

Let me know if this helps you .

Sukanya Banekar