AdvancedForm update, isValid Validator integration

August 12th, 2006

The AdvancedForm component has been updated to provide a simple approach to Validation. The AdvancedForm now looks for any Validators present in the same document scope. It then tracks any Validators valid or invalid change. It also exposes the “isValid” property that is set to True if all Validators in the same document scope are valid.

To see the updates in action nativate to:

http://renaun.com/flex2/AdvancedForm/

You’ll find a form with a “Submit Data” and a “Reset Form” button. The example has two Validators on the firstName and lastName TextInput controls. If you fill in the two name fiields the “Submit Data” button will become enabled, as its bound to the new “isValid” AdvancedForm property. Also a side note on reseting the form, the AdvancedForm does disable all Validators before reseting any fields and then enables the fields after the reset. This is to keep the action of Reseting any of the fields to cause the Validators to fire any events.
You’ll find the updated AdvancedForm component page here:

http://renaun.com/blog/flex-components/comp-advancedform

Entry Filed under: Adobe Flex, Rich Internet Applications

1 Comment Add your own

  • 1. kreed  |  2007-05-02 at 4.04 pm

    Are validators that are set to disabled ignored?

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

August 2006
S M T W T F S
« Jul   Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Most Recent Posts


Flex.org - The Directory for Flex