Content Validation - How to exclude special characters in Text entry questions | XM Community
Skip to main content
Solved

Content Validation - How to exclude special characters in Text entry questions

  • March 31, 2021
  • 2 replies
  • 383 views

Anna_Verges
Forum|alt.badge.img

I am preparing a survey where the user will type the surname - text question.
I want to make sure that characters such as accents, apostrophes, umlauts are not accepted.
I cannot see, under content validation options, a way to exclude special characters
Am I missing something? Has anyone who had similar requirement found a way to do the above in Qualtrics?
Many thanks 🙂
Anna

Best answer by TomG

You can do it with a regex that only allows A through Z and few other characters.
^[a-zA-Z '.-]+$

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • March 31, 2021

You can do it with a regex that only allows A through Z and few other characters.
^[a-zA-Z '.-]+$


Anna_Verges
Forum|alt.badge.img

Thank you Tom