I'm unable to get a validator for dropdown widget to work. The validator is supposed to check if a selection was made from a dropdown widget. I've tried the following in the validator but it still goes through. How can I get this validator to work? The validator input is bound to Selected Row of the service that populates the dropdown.
Here is a line from one of my validation routines. The output of the Selected Row of the query is a String Value, but I have used IDs (INT) before with no problems. Here are the lines in the validation JS. I do a check for a NULL value - OR - the data's length because sometimes we have had issues validating only against NULLs.
else if (FailCode == null || FailCode.length == 0)