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
jack-cepheidjack-cepheid 

Trigger Opportunity Product page layout - HELP

I have built several Discount formula fields in the Opportunity Product to reflect contract selections from the Account page. The Problem is that i have several fields and i would like to eliminate field that do not need to be shown for that given opportunity.

I heard that I could use Apex Triggers to determine the page layout that is selected.  So my question is two fold, 

1) is that true that i could use a trigger that looks at a field in the Account page to determine the page layout of the Opportunity products for that account.

 

2) How do i do that? (i'm great with formulas but code not so much i can customize visualforce but i have not written much on my own)