Solved

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

  • 31 May 2023
  • 3 replies
  • 117 views

Badge +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???

icon

Best answer by dperani 9 June 2023, 15:04

View original

3 replies

Userlevel 6
Badge +22

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?

Userlevel 5
Badge +20

Hi @dperani 

Have you resolved this issue? 

Badge +5

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. :)

Reply