Hi all,
I have a survey that is accessed via QR code in our physical locations. We collect their name and phone number. In the workflow, they will receive a text 4 hours later that contains a link for a post-visit survey. It is possible that we will receive phone numbers from the USA, as well as international numbers, so I cannot use the regular phone number validation.
The issue I am having is custom validation. I don’t want to require the respondents to enter the plus sign like: +1 (USA) or +44 (UK) for example when entering their cell phone number, because its not natural for someone to do. However, in order to receive an SMS, the 1 or 44, etc. is required or the SMS workflow trigger fails.
I had used AI (ChatGPT, Gemini, and Qualtrics AI support) to create and test custom validation using “Matches regex” and it WORKED a month ago.. but now I see that it has stopped working. I’ve gone back in and tried various coding for matches-regex.. and nothing seems to do be doing the trick. People are still able to submit a phone number without a country code, which is a problem for me.
As a quick solution, I’ve set up “Mobile phone number contains: +” so that I don’t have any other SMS triggers fail.. if they forget the + sign, they get this error “Invalid phone number: Please make sure you included your country code (+1 for USA, +44 for UK, etc.) and that you do not have any spaces, dashes, or parentheses.”
BUT I am hoping someone can help me create a proper “matches regex” string, or a custom code to allow the following formats (if they don’t match the following formats, I have the error message firing):
USA MOBILE NUMBER EXAMPLES:
12345678909 (passes regex validation)
+12345678909 (passes regex validation)
2345678909 (fails regex validation)
Please help - it would be greatly appreciated!! :) I’ve talked to multiple support specialists and have not been able to find a solution, so they sent me to the community page!