RE: Case Portal comments - 'Add comment' button visibility based on case status
Hi Manu,
We can insert custom javascript into web template: "Customer Service - Edit Case" to achieve your requirement.
You may had noticed that this label will always change based on case status.
This label is "label-success", which will appears when current case status equals 1.(Closed)
So we insert our code into the snippet:
(function ($) {
setTimeout(function(){
$('.addnote').css('display', 'none');
}, 2000);
}(jQuery))
A timer is required because our function will be executed before the "Add comment" button is rendered,
we need wait some time to catch the element.(You might need to change it based on your portal performance)
Now the button will be hidden if case had been closed.
Regards,
Clofly