validation is done on focus out it is conformed. I think u can use 
myField.errorString ="";
 
Asad


________________________________
From: dorkie dork from dorktown <dorkiedorkfromdorkt...@gmail.com>
To: flexcoders@yahoogroups.com 
Sent: Tuesday, November 29, 2011 5:17 AM
Subject: Re: [flexcoders] Re: Red error borders on form items before form is 
validated


  
It seems to be the case that it's validating on focus out. I realize I need to 
come up with a test case to see if this is the default behavior or something 
causing it in my project. 


On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi <asadzaid...@yahoo.com> wrote:

  
>this occurs due to validation errors. in ur case i think while rendering it 
>focus in ur component and on focus out it validates ur component. i havent 
>tried it but i think u can use initialize property of the component to stop 
>validation at initialization process. Or u can assign the validator to that 
>component after all components have been rendered.
>i will try to find out more and will let u know.
> 
>Asad.
>
>
>From: "michael_reg...@dell.com" <michael_reg...@dell.com>
>To: flexcoders@yahoogroups.com 
>Sent: Monday, November 21, 2011 7:41 PM
>Subject: RE: [flexcoders] Re: Red error borders on form items before form is 
>validated
>
>
>
>  
>Can you give an example of how you’ve written your validator?  I’m suspecting 
>it is on how you defined the trigger.
> 
>Michael J. Regert
> 
>From:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
>Of Khanh
>Sent: Thursday, November 17, 2011 4:20 PM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] Re: Red error borders on form items before form is 
>validated
>
>  
>It's a focus border.
>Usually, it's blue. I'm not sure how it's red in your case!
>You can change the color following this example.
>Thanks to Peter Dehaan for his great tip.
>http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/
>
>OR you can hide this by using the property: focusAlpha
><mx:TextInput id="txtInput" focusAlpha="0"/>
>
>Good luck.
>
>--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
><dorkiedorkfromdorktown@...> wrote:
>>
>> When I display my Form elements (TextInput, Combox, etc) the red error
>> border is shown right away before the user even types into it. Why is this
>> happening? How can I prevent it from showing a red error border when it's
>> first displayed?
>>
>
>

Reply via email to