If found that <widget>.errorString=null clears the red border while setting it 
to a value displays it.

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Asad Zaidi
Sent: Tuesday, November 22, 2011 2:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Red error borders on form items before form is 
validated

 

  

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 <mailto:flexcoders%40yahoogroups.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