Skip to main content
Sep 20, 2021 6:59 AM UTC
Question

Disable Copy & Paste on Text Field

I would like to disable Copy and Paste option on Text Field in ThingWorx during Runtime. Is there a way to do this?

4 replies

Sep 20, 2021 12:37 PM UTC

What is the use case for this? Personally I'm not well versed, but this article seems to say that potentially it can be done with CSS (the other methods would require a custom widget)

https://www.makeuseof.com/disable-text-selection-cut-copy-paste-right-click-on-web-page/

 

Sep 21, 2021 4:15 AM UTC

We have a Manual Form where Customer does not want any user to Copy & Paste the Value while filling the Form, I already tried implementing using CSS as it is mentioned in the link you provided but its not working. It works for Label Widget but not for TextField.

Sep 21, 2021 12:15 PM UTC

I you aren't able to override that behavior with CSS most likely you will need to create a custom widget.

Sep 29, 2021 1:25 PM UTC

Hi @Naved_Ansari.

 

If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon