1 Reply Latest reply on Nov 21, 2008 3:49 AM by SujitG

    DateValidator problem

      I'm using DateValidator in my application.
      I wrote a custom formatError message like "Please insert the date in the correct format".
      But, when an error happens, flex writes "Please insert the date in the correct format dd/mm/YYYY".

      I don't want flex to append the input format to my string! How can I get rid of that?

      Thank you very much,
      best regards
        • 1. Re: DateValidator problem
          SujitG Level 2

          You might have to override the validateDate function in the DateValidator and change the error message being returned when the length validation fails. You can look out for wrongLengthError string in validateDate function. This is where the error string is being set.

          Hope this helps.