TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
"input type: text" form
Good day.

I am trying to configure the text fields so that they cannot be copied or pasted, my js code affects everything that says "input type: text" but despite this the platform's text fields do not take the configuration and They still let you copy and paste.
Below is my js code which I apply in the form layout.
<script>
var inputs = document.querySelectorAll('input[type="text"]');
inputs.forEach(function(input) {
input.addEventListener('copy', function(e) {
e.preventDefault();
});

input.addEventListener('paste', function(e) {
e.preventDefault();
});
});
</script>
ID
1982
Category
Setup
Author

Daniel Morales
Date Created
5/22/2023 12:20:52 AM
Date Updated
5/22/2023 12:47:29 AM
Comments
basenine 5/22/2023 12:47:29 AM
Feedback
Back to Search Results