function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marketing Marketing 27Marketing Marketing 27 

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?
 
this[NavigationMixin.Navigate]({
            type: 'standard__objectPage',
            attributes: {
                objectApiName: 'Annual_Review__c',
                actionName: 'new'
            },
            state:{
                defaultFieldValues : defaultValues
            }
        });