How do program question to only accept 4 numbers plus one alphabet | XM Community
Skip to main content
Solved

How do program question to only accept 4 numbers plus one alphabet

  • October 13, 2024
  • 1 reply
  • 29 views

Forum|alt.badge.img+13

I need to create question that is asking for the last 4 numbers of phone number and then their initial.  How do we make sure they add just 4 numbers and one letter and the right order?

Best answer by Nam Nguyen

@Linda_charlton You can add a custom validation that match this regex ^\d{4}[A-Za-z]$

Hope this help

View original

1 reply

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • Answer
  • October 13, 2024

@Linda_charlton You can add a custom validation that match this regex ^\d{4}[A-Za-z]$

Hope this help


Leave a Reply