Wow! URL Trick is now supporting in Salesforce Lightning edition as a part of Spring 20 Salesforce Release.
Not sure how many of you tried the URL trick back in classic edition to pre populate field values in edit/new record form of record. When lightning was released, this was one of the feature we were missing a lot. Just to build this functionality, we needed to write custom lightning component with the help of lightning data service.
This much work is no more needed now. Populating field values on new record form is now being supported by passing the values through URL. But populating field values on edit form is not yet supported, hopefully it will be available in next releases.
You need to construct URL as follows.
In this example, I am constructing URL to redirect to account creation page where Name field is auto populated with lead’s company, Type as Prospect and Custom field checkbox to checked. The final URL in browser looks like below:
Add as many as fields and assign values to them, make sure they are separated by comma (‘,’).