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
hy.lim1.3897974166558203E12hy.lim1.3897974166558203E12 

Close case layout in Case feed change status

Hi, I have case feed enabled in my org and I would like know how can I trigger the Close Case layout whenever I close the case from the 'Change Status' section?

Under the 'Change Status' section I am able to select the Close status but it did not prompt me the close case layout for me to select the closure reason while if I click Close button in detail view it will prompt me to close case layout for closure reason.
Sonam_SFDCSonam_SFDC
You can try the following approach,

1)Override the save button
2)Create a before insert  trigger which opens the close page layout (which you can replicate on a visualforce page) when the Status picklist value has Closed as a value
This way, when users change the status to close and hit enter twice - the VF page will automatically open because of the trigger.


I also checked to see if this was possible usng Out of box functionality(without code), however, bringing up a page at the change of a picklist value wont be possible even with JS/JAVA until we have the page as a visualforce page.