Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • thanks for the suggestion! I already tried adding required="true" as an attribute of the field and now I also tried adding "required" to the class attribute as you proposed. Unfortunately none of these are triggering my custom event handler in case I enter something, then delete it and finally leave the field. What they do is highlighting the field caption with red, but what I want is to display a custom error message. Thanks for the other suggestion, I will take a look as soon as I fixed the problem of my custom event handler not being called. Commented Jan 28, 2019 at 12:16
  • Okay, that's all I got. I don't have something to test with. This was just shooting from the hip from my mobile. Keep engaging with Zollie, I feel like he might be able to see you through. Commented Jan 28, 2019 at 12:19