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
Marco Rosa 3Marco Rosa 3 

Prevent Copy and Paste

Our customer is asking us if is there a way to prevent users to copy (or cut) information from Salesforce, for example from page layout or list views or Report.
According to Salesforce support this is not possible on Report and List View and "maybe" can be obtained on Layout by a customization of the View.
Any idea of how can it be done?

Thank you 
SwethaSwetha (Salesforce Developers) 
HI Marco,
I've come across preventing copy-paste via custom code but not on OOTB functionalities.
See posts:
https://anothercodingblog.com/2021/07/13/prevent-users-from-copying-pasting-datatable-information-in-lightning-web-components/

https://salesforce.stackexchange.com/questions/247097/how-to-add-a-functionality-to-stop-copy-paste-on-an-input-field-in-lightning

https://www.biswajeetsamal.com/blog/disable-copy-and-paste-in-visualforce-page/

Hope this helps!Thank you