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
GB3GB3 

validation rule on parent object field to make child field not editable

How can I make a child object field non-editable / disabled if a field in the parent object is a particular value?

For example, if the "Product" in the master object (Order) is "Product ABC", then I want the "Expedite" field in the child object (order detail) to be non-editable (ideally, the field would be grayed out / disabled).

Below is my attempt, however, it is still letting me edit the child field:

AND(
Order.Product__c = "Product ABC", ISCHANGED(Expedite__c)
)
Raj VakatiRaj Vakati
Your validation is correct .. 

You can able to the edit the value but you cannt able to save the valie becasue your  validation rule is going to fire and prevent from the savng 
 
AND(
Not(ISNEW()),
Order.Product__c = "Product ABC", ISCHANGED(Expedite__c)
)

 
Raj VakatiRaj Vakati
Does it works ?