You need to sign in to do that
Don't have an account?
![Marketing Marketing 27 Marketing Marketing 27](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Lightning Web Component - how to get the standard Record Type Selection window to pop up??
Building a lightning web component that allows users to make a new record of a custom object with much of the field pre-filled.
I am using the NavigationMixin and the encodeDefaultFieldValues methods in my JS file. However I need a way to allow users to select the record type like they would normally do and then navigate to the new record page of that record type after.
how can I get the basic record type selector popup to be part of the lightning component and how can i put the selected record type into the page reference attributes below?
I am using the NavigationMixin and the encodeDefaultFieldValues methods in my JS file. However I need a way to allow users to select the record type like they would normally do and then navigate to the new record page of that record type after.
how can I get the basic record type selector popup to be part of the lightning component and how can i put the selected record type into the page reference attributes below?
this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { objectApiName: 'Annual_Review__c', actionName: 'new' }, state:{ defaultFieldValues : defaultValues } });