Skip to main content
5-Regular Member
September 20, 2021
Question

Disable Copy & Paste on Text Field

  • September 20, 2021
  • 2 replies
  • 1804 views

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

2 replies

22-Sapphire I
September 20, 2021

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/

 

5-Regular Member
September 21, 2021

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.

22-Sapphire I
September 21, 2021

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

Support
September 29, 2021

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