There is such great lightning standard component force:recordEdit. It show existing record in standard layout. Is there any way to show the same layout but for new record (not existing yet). I want to use standard layout to create new record.

  • developer.salesforce.com/docs/atlas.en-us.lightning.meta/… Maybe this can help ? You just need to describe the api name of the object you want to use to create a new record – Simon Govaert Feb 3 '17 at 8:51
  • I tried it, but it opens new modal and I don't have access to its context. I need to prepopulate some fields for new record. So I want to emulate this createRecord window but with my own custom Action Lightning component. – Dmitry Shnyrev Feb 3 '17 at 8:59
  • You want to prepopulate fields on a create record, the only way I found is using a quick action ( link : salesforce.stackexchange.com/questions/116697/… ), but it canno't be used inside a lightning component. The quick action is added as a button on the standard record page – Simon Govaert Feb 3 '17 at 9:15
  • And last but not least, you can customize your own lightning component to create the new record and customize the behavior.. Not standard, but prepopulated fields and can be called from a lightning component – Simon Govaert Feb 3 '17 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.