Lookup field does not validate in custom validation unless something is selected

  • 28 March 2016
  • 1 reply
  • 0 views

Badge +8

I have a lookup field on the form and I do not select anything (the Please select message is showing), the custom JavaScript validation is never called.

I am assuming this is yet another bug in custom validation?   With so many bugs, it makes the feature pretty much useless.


1 reply

Userlevel 5
Badge +14

how does your validation look like?

do you check for IsNullOrEmpty()?

once "Please select a value..." is selected in a lookup (doesn't matter whether it is default pre-selected value or selected by purpose), IsNullOrEmpty() returns true, otherwise it returns false.

Reply