Still cannot disable copy/pasting in my survey after trying every code in the book! | XM Community
Skip to main content
Solved

Still cannot disable copy/pasting in my survey after trying every code in the book!

  • August 15, 2024
  • 1 reply
  • 96 views

Forum|alt.badge.img

Would anyone be able to help me with this? Thank you so much!

Here’s my survey link: https://unomaha.az1.qualtrics.com/jfe/form/SV_7ZZxpyjGK02y0jY

Here are the just a few of the codes I’ve tried (plus many others): 

1.body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

 

2.jQuery("#"+this.questionId+" .InputText:eq(0)").on("cut copy paste",function(e) {
   e.preventDefault();
  });

 

3.Qualtrics.SurveyEngine.addOnReady(function () { const qc = this.getQuestionContainer(); qc.querySelectorAll("input").forEach((item) => { jQuery(item).bind("paste", function (e) { e.preventDefault(); }); }); });

 

 

I don’t know what else to do from here. Any insight would be so appreciated! 

Best answer by jbk

Hi, this might help.

View original

1 reply

  • Level 4 ●●●●
  • 204 replies
  • Answer
  • August 16, 2024

Hi, this might help.


Leave a Reply