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
sultansultan 

I make a field mandatory by page layouts and also by validation rules .Now my question is which one will be fired first at run time?

Best Answer chosen by sultan
PratikPratik (Salesforce Developers) 
Hi Sultan,

As per the execution order of Statements in Salesforce,
Page layout Mandatory will be checked first.
Page layout specific compliances are checked before the Validation rules.

Thanks,
Pratik

P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.