OnObjectKeystroke Trigger with a script with a simple Halt Script set.
This can also be accomplished using the Manage -> Security -> Privilege Sets. You can set it up record level, or at the layout level.
Follow up question...
How do I capture the error if I...
- prohibit modification in data entry of a field
- use security level access to prohibit modification of a field
I've tried OnObjectAnything script triggers to SetErrorCapture, but I keep getting the pop-up error when a user types into a field.
I just want them to be able to highlight and copy the contents as if it were a webpage.
I tried this in a field that prohibited field modification but where the user could still enter the field. When they type anything, an error dialog comes up.
I created a script trigger with the Halt Script OnObjectKeystroke. I'm not sure if there's more to that... SetErrorCapture doesn't seem to help.
This error doesn't seem to be an error on the list of errors that can't be suppressed.