Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Form Validation

Hi,

I wrote a custom validator for captcha that compare session value with submitted value, and custom captcha element that consist of textbox+image tag. everything is ok & validate() method in validator class return suitable boolean & works well.

But form shows validation message again even when validate() return true! whats my mistake? element don't pay attention to what validate() returns!



2.1k
Accepted
answer

I found my mistake! :) I set Message before return true or false in validate() method! oops!