1 Reply Latest reply on Jul 14, 2008 10:57 AM by Starlover_jacob

    reset custom form validation

    Starlover_jacob Level 1
      Hi there,

      I use a custom form validation on a form.
      When i use the form for the first time my name input field has no red line.
      when i cancel the form and i reopen the form, my name input field has a red line around it.
      I guess my problem is that my custom validation needs to be reset, so my question:

      How to reset a custom form validation.

      Greets, jacob

        • 1. Re: reset custom form validation
          Starlover_jacob Level 1
          It turned out to be a simple fix.
          lets say you have an input field for a username with the id of input_name.
          when you reset the form and clear all the fields you do the following:
          When you have an validation error on one of your input fields.. the input field keeps a red border.
          So to reset that you do the following:

          The only thing i experienced was when i call a resetfocus function. the red border stays around my input field.
          private function resetFocus():void

          Greets, Jacob