0

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.

https://releasenotes.docs.salesforce.com/en-us/spring20/release-notes/rn_lc_navigate_to_record_dfv.htm

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?

0

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.

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.