Trying to require content validation for a specific set of digits | XM Community
Skip to main content
Solved

Trying to require content validation for a specific set of digits

  • January 12, 2021
  • 2 replies
  • 653 views

I have a question for which the answer must consist of 9 digits. The validation allows you to set a minimum number and a maximum number, both of which I set to 9 in order to get 9 digits. However, the validation doesn’t work that way and it is requiring that the numbers listed EQUAL 9 as opposed to consisting of 9 digits. I’m looking to see if there’s a way to make it require 9 digits instead. 

Best answer by rondev

You can use custom validation -> Match Regex -> ^[0-9]{9}$

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • January 12, 2021

You can use custom validation -> Match Regex -> ^[0-9]{9}$


  • Author
  • January 12, 2021

Success! Thank you.