1

I am currently facing following problem:

I would like to have full-custom form for custom object. I cannot use standard Lightning Record Page, because there are lot of customisations like some fields showing up conditionally based on other fields' values, custom buttons changing statuses, popups with additional options, etc.

Also, the record is related to Account, Lead and Opportunity. User needs to create this custom object from all of them. When doing so, proper lookup needs to be populated, also some other fields have values copied from them.

Now the problem: I have overriden the NEW action with my custom Lightning Component. However, I cannot find a way to prepopulate certain fields when creating this object from related list. Any ideas how to do it?

P.S. I already have working solution using Lightning out VF page that is passing prepopulation parameters to my Lightning Component. However, it's hard for me to believe SF have not thought about pure-LEX solution for such use case!

closed as off-topic by glls, battery.cord, Ratan Paul, Santanu Boral, Himanshu Dec 5 '17 at 4:09

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: SSCCE.org" – glls, battery.cord, Ratan Paul, Santanu Boral, Himanshu
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    I'm not really sure here Wookie. I think you should state your case on Meta. – Adrian Larson Dec 5 '17 at 13:52