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
Ragnar Lothbrok 7Ragnar Lothbrok 7 

How to add Extra functionality to Standard one ?

Hello there,
I have a requirement for showing confirmation dialog box with ok and cancel button when user try to change the owner of the case from the field “Case Owner” in case page layout. Now this confirmation dialog box only shown if the new owner of case will be associated to some specific Profile (Like : Covid rep Profile).
User-added imageIn short, as a User when I try to change the case owner to “Covid rep Profile” user and click on the “Change Owner” button then I should get the confirmation box with ok and cancel button. If I click Ok, then the owner should change and If I click cancel then changing of case owner will be stopped or cancelled.
User-added imageAnd if the owner is other than “Covid rep Profile” user then it should work as normal standard way.
Do I have to create a Standard controller extention, but I am not familiar with this process at all, and any help would be very much appreciated.  
Please help however you can by telling me how to create a custom extentsion or whatever to achieve this functionality.
Thank you so much!
PriyaPriya (Salesforce Developers) 
Hey Ragnar,

You need to develop the Aura component for this requirement.

For sample, you can refer this link (https://salesforce.stackexchange.com/questions/240139/trying-to-create-a-case-record-from-lightning-component-input-form)

How to create Aura component, refer this link (https://trailhead.salesforce.com/content/learn/projects/quickstart-lightning-components/quickstart-lightning-components3)

Then on the change of owner you can add the 'Pop-up/Modal' in client side controller as shown in these links :-
1. https://www.sfdcpoint.com/salesforce/modal-popup-lightning-component-salesforce/

2. https://salesforce.fun/2021/04/21/pop-up-within-a-pop-up-in-lightning-aura-component/
 

Kindly mark it as the best answer if it works for you.

 

Thanks & Regards,

Priya Ranjan