Hello I have a question if anyone had the same problem and was able to solve it?
I wanted to prohibit entering 2 words in a field, which works.
Code looks like this: ^(?!.*\b(bochum|Bochum|unbekannt|Unbekannt)\b)[a-zA-Z0-9]+$
(inserted in the text field under format)
Now I have the following problem that words with Ä,Ö,ß and so on can no longer be entered.
Does anyone have a tip an idea?
Your regex is not accounting for Unicode characters. I am not a regex expert by any stretch of the imagination. Maybe this will help: https://www.regular-expressions.info/unicode.html
Thanks gave me an idea.
In case someone needs this to ban words in a field:
"^(?!.*\b(word|Word|example|Example)\b)[a-zA-Z0-9-Ä-ä-Ü-ü-Ö-ö-ß]+$"
You might use the same logic found here - https://formidableforms.com/knowledgebase/general-form-settings/#sts=Restrict%20email%20addresses
Hello thanks for the tip, since the form is multi-page, the submit button is not so good, it should already happen on the first page.
The code would be wonderful if the umlauts would work, unfortunately I have no further idea how to adapt it for this.
Please login or Register to submit your answer