Re: [flexcoders] Re: Red error borders on form items before form is validated
validation is done on focus out it is conformed. I think u can use myField.errorString =""; Asad From: dorkie dork from dorktown 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 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" >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 > > >Good luck. > >--- In flexcoders@yahoogroups.com, dorkie dork from dorktown > 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? >> > >
Re: [flexcoders] Re: Red error borders on form items before form is validated
After some testing it appears to prevent red borders early as you say if I do not assign validators until the time the submit button is clicked. thank you On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi 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" > *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 > > > 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? > > > > > >
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 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" > *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 > > > 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? > > > > > >
RE: [flexcoders] Re: Red error borders on form items before form is validated
If found that .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" 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 Good luck. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , dorkie dork from dorktown 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? >
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" 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 Good luck. --- In flexcoders@yahoogroups.com, dorkie dork from dorktown 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? >
[flexcoders] Re: Red error borders on form items before form is validated
Actually, I'm sure he's talking about the "required" attribute creating a red border (not a focus border) because the field doesn't have a value in it just yet. The Focus border is something entirely different. --- In flexcoders@yahoogroups.com, "Khanh" wrote: > > 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 > > > Good luck. > > --- In flexcoders@yahoogroups.com, dorkie dork from dorktown > 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? > > >
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 Good luck. --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, dorkie dork from dorktown mailto: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? >
[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 Good luck. --- In flexcoders@yahoogroups.com, dorkie dork from dorktown 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? >