+ Start a Discussion
Gopinath418Gopinath418 

what are the layout specific rules in order of execution?

what are the layout specific rules in order of execution?

 
Tintu_BabuTintu_Babu
Hi Gopinath,

I would like to answer this qustion with an example. I have in contact 
Required checked for Birthdate in page layout. 
Validation Rule for Email required .
Before Trigger for checking firstName.

When I save contact fron UI level,
Execution will be like
1. Salesforce default Mandatory fields and pagelayout specific required fields. In our case check for Lastname and check for Birthdate appears.ie, page layout specific validation occured first.
User-added image 
2. After populating Last name and Birthdate we can see it asked for Firstname ie before trigger.
User-added image
3. after populating firstname ,it asked for Email Validation
User-added image

Hope this helps. 
Gopinath418Gopinath418
Hi Tintu,
In the order of execution the 2nd point mentioned as below
2.Loads the new record field values from the request and overwrites the old values.
   If the request came from a standard UI edit page, Salesforce runs system validation to check the record for:
    a. Compliance with layout-specific rules
    b. Required values at the layout level and field-definition level
    c.  Valid field formats
    d.  Maximum field length

in the above point they mentioned layout-specific rules and then Required Values at the pagelayout level(but you said that the layout specific rules are nothing but required values at page layout)

Is both 'a' and 'b' points have same menaing?
if so why they mentioned both points (one point is enough right)

Thanks,
Gopi
Tintu_BabuTintu_Babu
Hi Gopinath,

I think layout specific rules can be readonly check as well as Required check in page layout level. 
Gopinath418Gopinath418
Hi Tintu,
So you are saying that points 'a' and 'b' are same?

Thanks,
Gopi
Tintu_BabuTintu_Babu
Hi Gopinath,

I think 'a ' as a general statement  on Pagelayout rule configurations. And 'b' points very specific to required check.  This is my view on this. 

Welcoming other salesforce experts comment on this.