+ Start a Discussion
Nejib EssouriNejib Essouri 

How to create a picklist related to lookup custom object ?

I create a custom object "Vente". This custom object have 2 lookups relation with 2 others custom objects "Mousse" and "Fourniture".
In my custom tab "Ventes" i need to create a picklist related to "Mousse" and "Fourniture". After that I can choose any field from the custom object selected.
For example: Related to [Mousse/Fourniture] [Fields]
Fahad-AkhtarFahad-Akhtar
Hi Nejib,
You can create picklist for related objects in visualforce, use following links for example, you can query parent objects and create two select list in apex and bind it to UI

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_selectList.htm

Thanks,
Fahad Akhtar