You need to sign in to do that
Don't have an account?

I want to create a picklist field in visual force page.and values are Lead and contact objects?
When i select the drop down the Lead or Contact object how can we see all Lead and contact records in visual force page. will you Plz suggest how to write code & How to create VF Page ?
Thank You
Greetings to you!
Please try the below code, I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Visualforce:
Controller:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
You can try the below code -
Change the object as per your need to Lead and Contact.
Thank You,
www.nubeselite.com
Development | Training | Consulting
Please mark this as solution if your problem is solved.
Greetings to you!
Please try the below code, I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Visualforce:
Controller:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas