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
Sekhar SekharSekhar Sekhar 

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

Hi
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

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

Regards,
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.

https://success.salesforce.com/answers?id=90630000000hfjRAAQ

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
Hello,
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
/*class*/
public Account acc{get;set;}

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

Let me know if this helps you .

Thanks,
Sukanya Banekar