Solved

Custom Field Validation Expression

  • 1 March 2023
  • 1 reply
  • 159 views

Badge +6

Hi,

I have a Single Line string custom filed on a logging form, and would like to add a Validation Expression that stops a user entering 000000 or 123456.

I’m able to write an expression that allows only 000000, but not able to write an expression that doesn’t allow that combination of numbers.

Has anyone had any luck writing this kind of validation expression?

Thanks in advance

icon

Best answer by Steve Miller 1 March 2023, 14:50

View original

1 reply

Userlevel 4
Badge +12

It might not be the most elegant solution but try this to stop the common junk inputs….add combinations as needed.

\d{6}(?<!000000|111111|222222|333333|444444|555555|666666|777777|888888|999999|123456)

Reply