1

I have a js list button which opens up new record (on edit mode) and pre-populate fields. I'm trying to figure out - what is the best way to convert this button to be lightning ready, but also keep the same functionality.

Creating new lightning component will not be good enough, because this action won't be available as related list button (like the js button).

Also, the new record needs to be open up on edit mode.

I tried the Lightning Experience Configuration Converter, but didn't get any answers.

Thanks for the help !

1 Answer 1

3

With Spring '20, you can now set a custom button to Navigate to a Record’s Create Page with Default Field Values

You can see this recent question for an example of someone using it as well as the example provided by the release notes below:

/lightning/o/Account/new?defaultFieldValues=
    Name={!URLENCODE(Account.Name)},
    OwnerId={!Account.OwnerId},
    AccountNumber={!Account.AccountNumber},
    NumberOfEmployees=35000,
    CustomCheckbox__c={!IF(Account.SomeCheckbox__c, true, false)}

You must log in to answer this question.

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