Skip to main content
Nintex Community Menu Bar

Validation Rule not working with Form controls

  • February 15, 2016
  • 17 replies
  • 74 views

Forum|alt.badge.img+11

I have a choice control that needs to become a mandatory selection once a particular value is not selected from a previous choice control.

All Validation rule seem to be ignored for all controls. I'm using the latest version of forms 2010.

177028_pastedImage_0.png

17 replies

Forum|alt.badge.img+9
  • February 15, 2016

When all are ignored, it looks like a JavaScript error. Open debugging tools in browser and have a look at error messages in JavaScript console.


Forum|alt.badge.img+7
  • Nintex Partner
  • February 15, 2016

Hi,

I just tested the rule and it seems to be OK.

When you launch the form and open the developer tool of your browser (F12), is there any JavaScript error?

[Edit] : Ok, didn't see Manfred Lauer​'s answer happy.png


Forum|alt.badge.img+11
  • Author
  • February 18, 2016

ok, I had been getting unexpected errors when accessing the function action of rules. But that has now been corrected.

The strange thing that I am experiencing now only affects validation rules on Choice controls. I have two choice controls. The second choice control needs to become mandatory or required once a particular value is selected from the first choice control. The first choice control is a drop down list with the selection values of One, Two, Three. If Two is selected from the first choice control, the second choice control has a validation rule to force it to be selected. This validation rule is not working when assigned to the choice control. If I place a text box on the form and assign the same validation rule, it does error on submit if Two is selected from the first control

177623_pastedImage_5.png177621_pastedImage_1.png


Forum|alt.badge.img+7
  • Nintex Partner
  • February 18, 2016

Hi,

Did you ever try to use isNullOrEmpty({Self}) function ?


Forum|alt.badge.img+11
  • Author
  • February 18, 2016

Yes, same result unfortunately. Have you come across this issue with rules on choice controls?


Forum|alt.badge.img+7
  • Nintex Partner
  • February 18, 2016

I tried both approaches and got no issue...

177627_pastedImage_0.png

177628_pastedImage_1.png


Forum|alt.badge.img+11
  • Author
  • February 18, 2016

Perhaps it's our environment. We've been having multiple issues since upgrading to latest version of 2010.


Forum|alt.badge.img+11
  • Author
  • February 23, 2016

The latest thing that I have noticed is that when I test the validation rules on the text fields, on Submit, they initially get a red line around the text boxes (as they should) and then when the form refreshes a couple of seconds later the red lines disappear and once again the rules are ignored. 


Forum|alt.badge.img+11
  • Author
  • June 16, 2016

I got rid of all and removed all references to other Content Types and this seems to have fixed the problem.


Forum|alt.badge.img+7
  • Nintex Partner
  • June 16, 2016

Hi Karen,

Was it voluntary to add braces around "Regulation Status"?

and(equals({Regulation Status},"Other",isNullorEmpty({Self}))


Forum|alt.badge.img+4
  • Rookie
  • June 28, 2016

Hi Joanne Morris,

Could you elaborate on what you did here to get this working?  I've been struggling with the same issue for a while where the fields appear invalid for a second, then the rules are ignored.

My team was under the impression that there's a limit on validation rules that could be applied before they start bugging out, but if you've found a way around the problem, I'd love to try it on my forms.

Thanks!


Forum|alt.badge.img+9
  • Novice
  • January 24, 2017

I have the same question, the validation rules on NF 2010 seems to be totally ignored even though they are brand new rules. Joanne Morris‌, you mentioned that you had to remove the rules and re-add them again; but my rules are new. I tried as simple as checking if a single line of text is blank and still it gets ignored. It can "sometimes" highlight the field as red but then submit the form normaly and save the item not showing the error message or preventing from saving.

any help is appreciated!


Forum|alt.badge.img+11
  • Author
  • January 24, 2017

I think it had something to do with other Content Types. I didn't set up other content types correctly and they have had an impact on my form. So once I deleted all other content types, my problem went away. 


Forum|alt.badge.img+9
  • Novice
  • January 24, 2017

Thanks for your reply Joanne. I have one content type that is being used on this form. I'll troubleshoot from there. It's scary to me to delete the content type as it is a big one and the form is too complicated. yikes!! :-(


Forum|alt.badge.img+9
  • Novice
  • January 24, 2017

I got it to work!!!!! horrayy!!

The issue was that I need to put the validation rules on the Content type form, not the copy on the library. although one would think both forms are linked and are exactly the same, but unfortunately they are not. Editing the content type form overrides the library form. Now I have to go back and check what was changed on the library form and apply it on the content type form.. That's crazy..

Thanks Joanne for pointing it out.


Forum|alt.badge.img+9
  • Novice
  • January 26, 2017

An update to the content types issue:

A release of NF2010 was just issued yesterday Jan 25th, 2017 that addresses the confusion between validations/rules or any changes from the content type form and the library form (which both were supposed to be the same - but apparently it was a known issue).

I upgraded Nintex forms to the new release and the issue was fixed on desktop form (having some issues with mobile but Nintex support are working on it). So if I edit the form validations on the library form, it will automatically update the content type form and vise versa.

https://community.nintex.com/docs/DOC-1156

--> Fixed an issue where updating a Form from the Form Designer Ribbon and List Setting Content Type may not reflect changes (00128135)


Forum|alt.badge.img+5

Hello, I am having this same problem! Could you please point me in the direction or explain to me how you fixed this? I have a form that has a lot of validations and I have 3 sections that are not validating as expected. It allows items to be entered that should not --- the are not populated. I can provide code if it helps. And there is one instance were the item works as expected in the Nintex form area but not in Prod. 

@Joanne Morris