One of the major pet-peeve is not understanding why the code isn’t working. And you for sure know you’ve written the correct code. But, thing just don’t work.
Let’s say you have a custom filter to be applied to a field and you’ve written your JS code on Load to apply the filter and everything (you know what you need to do!)
But the above is just not working. Why???
The reason is pretty simple! Because, the Lookup field is still using the one set on the field itself. Check that –
The above should be turned off to make your code work since the field’s default OOB filtering takes precedence.
And now, your code should work (Provided everything in it correct)
Hope this quick tip helps!