Expand my Community achievements bar.

Is validation OK

Avatar

Level 6

Hi,

I'm validating fields of the form by putting some script on preSubmit event:

if($.rawValue == null) then

    $.validate.nullTest

="error"

endif

When i click on Submit button and fileds are empty I got message "some fields are requered ..." it's perfect.

Now, on preSubmit event of IsValid field I need to determine is my form validated or not. I tried to loop througth all fields and check is filedname.validate.nullTest=="error" but it's not working if i'm doing it on preSublit event of IsValid field.

How can i check is validation passed or not?

Thanks in advance,

Paul Butenko

0 Replies