Is there a question type for URLs (or links)? | XM Community
Solved

Is there a question type for URLs (or links)?

  • 7 October 2021
  • 3 replies
  • 204 views

Userlevel 2
Badge +3

One of the questions in my survey asks the respondent to enter a URL (a link).

  • Is there a question type for this?

  • Or if entered in a text field, is there an option to validate a URL?

Thanks

icon

Best answer by ElieD 7 October 2021, 13:34

View original

3 replies

Userlevel 6
Badge +37

There is no built-in option to validate url format.

But you can add custom validation to a text field :
image.pngThen you have to choose Regex :
image.png
I've found a regex you just have to paste in your validation :
((([A-Za-z]{3,9}:(?:\\/\\/)?)(?:[-;:&=\\+\\$,\\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\\+\\$,\\w]+@)[A-Za-z0-9.-]+)((?:\\/[\\+~%\\/.\\w-_]*)?\\??(?:[-\\+=&;%@.\\w_]*)#?(?:[\\w]*))?)
Reference : https://stackoverflow.com/a/8234912

Badge

I’m having the same issue. Has Qualtrics updated this validation type?

Userlevel 7
Badge +20

I’m having the same issue. Has Qualtrics updated this validation type?

Hello @View_QUT, unfortunately there is still no built-in option to validate a url in a Text Entry question. However, the Regex solution on this thread is still able to be used and is functioning as expected. 🙂

Are you having issues implementing this solution? 

Leave a Reply