Well, you can add an onElementValidate method that checks the whole form, so
every time the user changes a value you check the entire form and then
enable/disable your submit button as you like.

On Wed, May 18, 2011 at 8:22 AM, hamburger <[email protected]> wrote:

> Hello,
> finding a solution to enable/disable my submit button despared me.
> I would like to enable my submit button if the validation for all
> fields are passed.
> onFormValidate do not helps, because it fires only if i press the
> submit-button
> onElementValidate is only for one element ..
>
>                onFormValidate: function(passed, myform, event) {
>                        if (passed) {log("passed");}
>                         else {log("no passed"); }
>                        },
>               onElementValidate:
> function(passed,element,validator,denotes ) {
>                        if (!passed) {log("disabled set");}
>                                else {log("button free"); }
>                        },
>
>
> do somebody still have a solution?
>

Reply via email to