Force Text Entry to be email address from specific domain | XM Community
Skip to main content
Solved

Force Text Entry to be email address from specific domain

  • November 5, 2020
  • 4 replies
  • 1010 views

gingersauz
Level 4 ●●●●
Forum|alt.badge.img+26

Have a "what's ur email?" text question in an anonymous, always open survey and would like to restrict the responses to only allow "@XXXdomain.com" email addresses. Is this possible? ...total newbie here.

Best answer by rondev

Use the below regex in regex custom validation of text entry question

image.png

4 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • November 5, 2020

Use the below regex in regex custom validation of text entry question

image.png


gingersauz
Level 4 ●●●●
Forum|alt.badge.img+26
  • Author
  • Level 4 ●●●●
  • November 5, 2020

thx rondev! i'm assuming i put it in the right place since i'm getting the "please enter a valid email address" message. but i'm getting that message regardless of what i type in the field. obviously i'm doing something wrong.


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • November 5, 2020

https://www.qualtrics.com/community/discussion/comment/31688#Comment_31688Use the regex shown in image: (instead of XXXdomain write your domain)
image.png


gingersauz
Level 4 ●●●●
Forum|alt.badge.img+26
  • Author
  • Level 4 ●●●●
  • November 5, 2020

i figured it was newbie issue like that. thank u!