Restrict for Entering 10, 13 OR 17 digit number only

Try changing the above to either of the two
Option 1
regex(., ‘[4]{10}$’) or regex(., ‘[5]{13}$’) or regex(., ‘[6]{17}$’)

Option 2
regex(., ‘^([0-9]{10}|[0-9]{13}|[0-9]{17})$’)


  1. 0-9 ↩︎

  2. 0-9 ↩︎

  3. 0-9 ↩︎

  4. 0-9 ↩︎

  5. 0-9 ↩︎

  6. 0-9 ↩︎

1 Like