1

A customer is asking that a status field on a child record be defaulted to a value from a parent record when the "New" button is used on the "Related" tab of the parent record.

Can this be accomplished in Lightning Experience just using the default layouts?

(In Classic, the request can be routed through a page/controller to add parameters to the URL; that is a hack.)

4
  • is custom quick action good enough? Commented Jan 29, 2019 at 12:06
  • @PranayJaiswal I thought that only allowed constants not references to values from the parent?
    – Keith C
    Commented Jan 29, 2019 at 12:14
  • 2
    I created a quick Action on Account to create an Opportunity and on Predefined Field Values I was able to refer and use Account fields( Account.AccountNumber ) . Commented Jan 29, 2019 at 12:15
  • @PranayJaiswal My bad - excellent! Please post as an answer.
    – Keith C
    Commented Jan 29, 2019 at 12:23

1 Answer 1

4

A quick Action on Parent to create child records would work a charm. Also, we can prepopulate child record's fields from parent using Predefined Field Values which is somewhat similar to classic(pre-populating fields url hack)

enter image description here

A tip from Salesforce docs says:

On object-specific actions, the predefined value can include references to the source object and its related objects

Src: https://help.salesforce.com/articleView?id=predefined_field_values.htm&type=5

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .