Navigate to a New Record with default values in LWC
This post is going to be a little bit interesting since we will be looking at how to navigate to a new record page/form along with some default values.
We have looked at a series of posts related to Navigation in LWC.
This post is going to be a little bit interesting since we will be looking at how to navigate to a new record page/form along with some default values.
In Salesforce Classic we used to reply on URL hacking. In LWC we will be taking a separate take on them.
Here is the sample code!
Let's look at the controller file that’s where all the magic happens.