Skip to main content
Solved

Custom Field Validation Expression

  • March 1, 2023
  • 1 reply
  • 262 views

Forum|alt.badge.img+7

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

Best answer by Steve Miller

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)

View original
Did this topic help you find an answer to your question?

Forum|alt.badge.img+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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings