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
SrinuSrinu 

shouldn't include the option to have public comments !!

Hi folks,

How can we prvent the user not to select the 'Public' checkbox while creating a case comment for few type of cases?

I know we can show an error message upon selecting 'Public' checkbox by creating a trigger on case comment object. 

But I am wondering is there any way to disable, or grayout, the public checkbox so that it cannot even be selected?

Thanks,
Srinu.
pconpcon
I believe the only way would be to create a custom visualforce page/component and use that to create the underlying CaseComment object.