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
mallikammallikam 

Restricting triggers to page layouts??

I know we can retrict triggers to profiles but can we restrict triggers to certain page layouts only? thanks!
bob_buzzardbob_buzzard

You can't restrict on the page layout, as you aren't associated with a page when the trigger fires.

 

You can restrict by record type, and you can specify a page layout per record type, so maybe that's the way to go.

 

 

mallikammallikam
thanks a lot for the reply. Can you please give me an example? What is a record type?
bob_buzzardbob_buzzard
Open Help and Training from your salesforce org and search for record type - there's plenty of information in there.
mallikammallikam
thanks bob!