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
DLuczakDLuczak 

Displaying custom field from a different object on Opportunity page layout

On the Opportunity page layout I would like to display a drop down of a field call sn from the object assets that belong to that account.  I would like the user to be able to pick the s/n and it would be saved as part of the opportunity.

 

What is the best way to show this field and would you have sample code to share

 

Thanks

 

Dan

Ispita_NavatarIspita_Navatar

Whatever you are trying to achieve cannot be done in the standard layout of opportunity as you wish the drop-down of assets to be displayed in New-edit page layout , but the options of the drop-down will be dynamic and in salesforce the options are defined at the schema level of object.


Hence the best way to implement your requirement will be to have a Visual force" page widget embedded in the Opportunity Page layout or displaying the "Assets" of the Account of the opportunity and enabling the user to select and save the selected asset in the opportunity.


Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.

 

DLuczakDLuczak
Thanks for the answer