Custom phone number validation | XM Community
Skip to main content
Solved

Custom phone number validation


Hi everyone. Hope you well. Quite new to qualtrics and busy setting up a project for a big client. I need to be able a validation that checks that the phone number entered to contact the respondent is 10 digits long e.g 082 555 1277. There are options like this in the validation box but only for select countries. Is there a way to create the same effect but for non-specific countries? Thanks in advance

Best answer by TomG

Use Custom Validation Matches Regex: `^\\d{3} \\d{3} \\d{4}$`
View original

5 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5934 replies
  • Answer
  • May 5, 2019
Use Custom Validation Matches Regex: `^\\d{3} \\d{3} \\d{4}$`

  • Author
  • 4 replies
  • May 5, 2019
Thanks a million TomG. Works perfectly and by playing around with spacing I can edit as needed. You are a lifesaver

Forum|alt.badge.img+4
  • 5 replies
  • June 5, 2020

I needed to do this as well and copied the validation from above but I'm still getting the error message even when I enter a 10 digit phone number. Any ideas??
image.png


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5934 replies
  • June 5, 2020

I needed to do this as well and copied the validation from above but I'm still getting the error message even when I enter a 10 digit phone number. Any ideas??

Did you replace the spaces with dashes?


Forum|alt.badge.img+4
  • 5 replies
  • June 16, 2020

I sure didn't. Thank you Tom! That fixed it.