Skip to main content
Nintex Community Menu Bar
Answer

How to set up a validation rule for a List Lookup dropdown

  • May 31, 2023
  • 3 replies
  • 251 views

dperani
Forum|alt.badge.img+5

I have a List Lookup dropdown on my form that is required. I have set the following validation rule on the field:

isNullOrEmpty({Self})

Why is it the system allows users to click Save and Submit and it allows it.  The rules doesn’t seem to fire.  When I used Edge’s F12 Developer Console I see the following errors:

Not sure why the rule isn’t working!!  Any ideas???

Best answer by dperani

Turn out I had to delete and recreate the list lookup fields and the validation rules worked this time.  Not sure why?!?!.  All the settings were the same. :)

3 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • June 1, 2023

Hi,

 

The formula you are using is valid for a lookup dropdown and should work.
What type of form are you using? Classic or Responsive? (Formula cant be used on new responsive)
Does this happen for every form with a lookup dropdown with validation or just this form?

Does validation work on other controls on this form?

If this is a classic form, is there any custom JavaScript included?


MillaZ
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • June 8, 2023

Hi @dperani 

Have you resolved this issue? 


dperani
Forum|alt.badge.img+5
  • Author
  • Scholar
  • Answer
  • June 9, 2023

Turn out I had to delete and recreate the list lookup fields and the validation rules worked this time.  Not sure why?!?!.  All the settings were the same. :)