You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Use Related Object Fields in Redwood Layout Conditions for a Custom Object?

edited Feb 25, 2026 12:11PM in Sales 1 comment

We have a custom object called Part Details. This object is not a child of Lead or Opportunity, but it is linked to both of them as a related object.In the Classic UI, we were able to build layout conditions using fields from the related Lead and Opportunity records.——————————————————————————————————————————————————
if (Lead_Lead_Part_Details_Src?.StatusCode === 'CONVERTED') {  return true;} else {  return false;}

AND other condition

if (Opportunity_Opty_Part_Details_Src?.SalesStageId === 300000002508240 ||Opportunity_Opty_Part_Details_Src?.SalesStageId === 300000002508241 ||Opportunity_Opty_Part_Details_Src?.SalesStageId === 300000002508242) {return true;} else {return false;}

————————————————————————————————————————————

Now we are moving to Redwood layouts, but Redwood layout conditions only allow conditions based on fields that belong to the current object. Fields from the related Lead or Opportunity records are not directly available within layout rules. We need to achieve the same behavior that we previously had in the Classic layout engine.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!