Struggling with disabling copy/paste in my survey | XM Community
Skip to main content
Solved

Struggling with disabling copy/paste in my survey

  • August 12, 2024
  • 2 replies
  • 269 views

Forum|alt.badge.img

Hi there. I have tried just about every method under the sun to disable copying/pasting in my survey, but nothing has worked. Qualtrics support explained that I’d need a custom code made. Is this something anyone would be able to help out with? Thank you in advance :)

 

Study URL: https://qfreeaccountssjc1.az1.qualtrics.com/jfe/form/SV_3Popc6aUZz81BH0

Best answer by ahmedA

Add this code to any question on which you want to disable pasting:

Qualtrics.SurveyEngine.addOnReady(function () {
	const qc = this.getQuestionContainer();

	qc.querySelectorAll("input").forEach((item) => {
		jQuery(item).bind("paste", function (e) {
			e.preventDefault();
		});
	});
});

 

View original

2 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2028 replies
  • Answer
  • August 13, 2024

Add this code to any question on which you want to disable pasting:

Qualtrics.SurveyEngine.addOnReady(function () {
	const qc = this.getQuestionContainer();

	qc.querySelectorAll("input").forEach((item) => {
		jQuery(item).bind("paste", function (e) {
			e.preventDefault();
		});
	});
});

 


  • Level 4 ●●●●
  • 204 replies
  • August 13, 2024
ksfaith01 wrote:

Hi there. I have tried just about every method under the sun to disable copying/pasting in my survey, but nothing has worked. Qualtrics support explained that I’d need a custom code made. Is this something anyone would be able to help out with? Thank you in advance :)

 

Study URL: https://qfreeaccountssjc1.az1.qualtrics.com/jfe/form/SV_3Popc6aUZz81BH0

I can see, you are using free trial account. In trial account, you can’t JS


Leave a Reply