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
Sahil YadavSahil Yadav 

How To Add New or Extra Functionality While Changing Case Owner?

Whenever a case owner is changed to other user of profile(new user profile name : 'AST ENTERPRISE' )in case record.
Then i want to get a confirmation dailog before saving with ok and cancel button.
On Click of ok button i want to change the case owner and return to the same page and
On Click of cancel do not change case owner and return to the same page. How can we do this? Is there a way to achieve this? Please guide me out in this.
Thank You.
VinayVinay (Salesforce Developers) 
Hi Sahil,

This would be out of box functionality with standard case owner change button,  You would need to customize whole page and build modal popup for case owner change functionality.

Check below reference.

https://www.sfdcpoint.com/salesforce/modal-popup-lightning-component-salesforce/
https://automationchampion.com/2022/06/18/add-confirmation-alert-and-prompt-dialog-box-to-lightning-web-component/

Please mark as Best Answer if above information was helpful.

Thanks,