Disabling Links in Survey Response Fields | XM Community
Skip to main content
Question

Disabling Links in Survey Response Fields

  • October 3, 2023
  • 1 reply
  • 60 views

Forum|alt.badge.img

Hi everyone!

We are currently seeking a solution to disable links entered by participants in response fields (text entry questions) of our surveys. We have previously been advised to use custom validation, but this option is incompatible with another validation we have configured for the maximum character count. Specifically, we want the links entered by participants in text fields to not be clickable when viewing the data through tabular widgets on the dashboard.

I really hope that someone can help me. 

 

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • October 3, 2023

You could use JS to remove http:// or https:// if it is entered in the text field:

Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .InputText").blur(function() {
this.value = this.value.replace(/\bhttps?:\/\//i,"");
});
});