Custom phone number validation | XM Community
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
icon

Best answer by TomG 5 May 2019, 16:31

View original

5 replies

Userlevel 7
Badge +27
Use Custom Validation Matches Regex: `^\\d{3} \\d{3} \\d{4}$`
Thanks a million TomG. Works perfectly and by playing around with spacing I can edit as needed. You are a lifesaver
Badge +4

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

Userlevel 7
Badge +27

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?

Badge +4

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

Leave a Reply