Validate the Check-box

  • 1 November 2016
  • 3 replies
  • 3 views

Badge +11

Hello

I have more or less the same question as posted here: https://community.nintex.com/thread/2994

The only difference is that I rather like to avoid the JavaScript but to use the build in options:

193735_pastedImage_1.png

The above settings are on the checkbox itself > It is set to NO (empty) by default.

When submitting the form and the Terms & Contions is not ticket;
then it should display "please read / agree to the Terms & Condition" with a red square:

193737_pastedImage_3.png

193738_pastedImage_4.png

193739_pastedImage_5.png

I have also tried with a validation Rule:

yet not working / validating sad.png

Here is another similar topic: https://community.nintex.com/thread/2613
but cannot seem to figure out how to make the checkbox a requirement!

Any suggestions?

I am out of ideas ...

Thanks


3 replies

Badge +11

UPDATE:


in the validation field, the following had to be entered:

Agreement == ""

all sorted happy.png works fine now

Badge +11

Hi

A Yes/No checkbox will always have a value either a Yes, when it is checked or No, when it is not checked. So validating with isNullorEmpty will not work.Also, the default value of this field is 'No'.

You have to validate if Field !="Yes". Hope that helps.

Badge +11

Yes, indeed. I suppose I thought it through in a different way.
If its not checked = NO | if its checked = YES

Both would work:

Agreement == "No"  OR  Agreement != "Yes"

in my case it worked even with Agreement == ""  (empty)

Reply