Thanks for your quick response. It helped. But now the requirement has changed. I need to display only 4 objects dynamically in the picklist i.e. Contact, Case, Opportunity and Account. And also when I click on the seletced object then I have to show another multi select picklist which will contain all the fields of that object.
Try this code
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards
Hi Devi,
Thanks for your quick response. It helped. But now the requirement has changed. I need to display only 4 objects dynamically in the picklist i.e. Contact, Case, Opportunity and Account. And also when I click on the seletced object then I have to show another multi select picklist which will contain all the fields of that object.