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
sai teja 69sai teja 69 

How to redirect back to case list view page after opening a 'New' record creation popup. LWC

I have a requirement to override 'New' button for record type selection CASE object, on recordtype selection for one of the record type(1 out of 4) i need to open custom lwc component. for 3 remaining record types i need to open sandard lightning popups.

I created lwc component for opening record type selection. from that popup i am opening new standard record creation popup. There while clicking on the cancel it is just closing the popup and staying on the record type selection lwc. But i need to redirect to case list view.

Custom LWC for record type selectoin Case object
case record type selection

standard case record creation popup
I am opening this standard record creation popup by using below code with returl but while clicking on the cancel button, it is not going back to case list view.
this[NavigationMixin.Navigate]({
        "type": "standard__webPage",
       "attributes": {
          "url": str.concat(this.recordTypeId, '&retURL=%2F500%2Fo')
     }
  });

Is there any way to override the cancel button action.