cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
putzjakob
Nintex Newbie

Regular for "have to contain"

Jump to solution

Hi there!

I tried to use

nicht(enthält(",")

as definied regular to give an error massage when field does not contain a ,

What do I wroing?

For translation NICHT means not an ENTHÄLT means contain.

THANKS!!!

Best wishes,

Jakob

Labels: (2)
0 Kudos
Reply
9 Replies
mlauer
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution
The function 'contains' expects two parameters.
Returns TRUE where string contains the element.
contains(string, element)
This expression works as expected: not(contains({Self},","))
Reply
praios81
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution

Yes, the field name is missing. If you need to check the current field to contain a "," you can use the self operator

nicht(enthält({Self}, ","))

If you need to check another field (or if you want to name the field instead of using self operator, you can just use the field to check by grabbing it from the collection of named controls / "Benannte Steuerelemente"

nicht(enthält(Feldname, ","))

0 Kudos
Reply
putzjakob
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution

Hi there!

Thanks for the swift answers.

I tried the mentioned solution an made screenshot because unfortunately it doesn't work.

What do I wrong?

THANKS!!!
Jakob

PS: The pictures above you find in a bigger format also at Dropbox - mustermann.pdf 

THANKS!!!

Reply
rickbakker
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution

Strange. I can reproduce your issue but have no time for it now to investigate it more. To be continued...

0 Kudos
Reply
rickbakker
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution

The following seems to work (control settings):

I still do not know why the not(contains(...,...) does not work. It works perfectly with a semi-colon.

Reply
sojanm
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution

It is working for me 

not(contains(Title,","))
 which version is your form
0 Kudos
Reply
rickbakker
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution

Hi Jakob Putz‌,

Ok. I must have been not that clear yesterday  not(contains({Self}, ",")) works indeed as expected.

What I noticed, is that your {Self} is not red. You probably typed it instead of selecting it from 'Named Controls'. This is probably your issue.

Cheers,

Rick

0 Kudos
Reply
putzjakob
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution

Thsnks!

When I try to force user to enter information like

Mustermann, Max

and want to avoid entries like

Mustermann Max

which regex should I use

I tried it with

\b[,]\s\b+

but does not work...

Thanks!!!

0 Kudos
Reply
mlauer
Nintex Newbie

Re: Regular for "have to contain"

Jump to solution

Hi Jakob,

for first question please mark the answer that helped You as correct and create a new entry in forum for a new question.

Kind regards

Manfred

0 Kudos
Reply