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
Static DevStatic Dev 

Prevent users to click on close button of cases


Is it possible to have a VRule sort of thing on close button of case. i.e. prevent user when they click the "Close Case" button if a number of fields on the case are not filled in. Then they should not be allowed to close the case.

Please let me know if it can be done with VR rather than apex code.

Thanks in advance!
You can't do it specifically with the "close case" button, but you could always create one that checks to see if the status is changed to Closed and the fields are blank then reject the record.