I've been looking at the Spring '20 release where Salesforce introduced the new lightning/pageReferenceUtils module to be used alongside with lightning/navigation to pre-populate the fields when creating a new record. Here's a reference to it.


I'm currently developing a LWC, trying to pre-populate a form with default values using the lightning/navigation. The problem is the pageReferenceUtils module's utilities for encoding and decoding default field values are not yet supported in the Salesforce1. Has anyone been able to find any workaround to that yet?

2 Answers 2


You could consider using the older approach, which is compatible with Communities and (I presume) Salesforce Mobile, of using a URL addressable Aura component to address this functionality. Doug Ayers developed a generic component for this; take a look at his GitHub resource.


Here is a complete solution:

Navigate to new record creation screen with pre-populated dynamic values.

It involves a Quick Action tied to an LWC that inferfaces with an object-agnostic apex controller.

It also uses a custom metadata type to define your field mappings.

You must log in to answer this question.

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