Custom validation rule with regex fails

Hello again.

Today i have following issue: I need to use Custom rules in validation, because we need german error messages. But this ends up with no success??? Here is what i want, just in english for u guys:

But this regular expression works fine:

Please! :weary: Every help is welcome, i will give a try immediately!

Hey SIMTEC-Software-Solutions, This regex seems to evaluate correctly on my end. It looks like you need to switch around the order of your ternary. The value that follows the '?' will return when the regex condition is true and the value that follows the ':' will return when the regex condition is false. If the 'Custom rule' input evaluates to a string, it will display that string as the error message. When the 'Custom rule' evaluates to an empty string, then it will not show an error message.

I hope that helps!

2 Likes

Yes exactly, i forgot to negate it! I realized that it in the meantime, but anyways: thanks for replying!