1 Reply Latest reply on Jun 20, 2012 10:16 AM by pauland

    Can't send a form

    caapos

      I have a following code that performs validation and form submission

       

      private function createUser():void

                          {

                                    var validated:Boolean=true;

       

                                    if((registerNameValidator.validate()).results.length>0) validated=false;

                                    if((registerSurnameValidator.validate()).results.length>0) validated=false;

                                    if((registerNickValidator.validate()).results.length>0) validated=false;

                                    if((registerEmailValidator.validate()).results.length>0) validated=false;

                                    if((registerPasswordValidator.validate()).results.length>0) validated=false;

       

                                    if (validated) {

                                              userRO.createUser(registerName.text,registerSurname.text,registerEmai l.text,registerPassword.text,registerNick.text);

                                    }

                          }

       

      Unfortunately the validation works but the form is not submitted. Any ideas?