Validating forms in Flex 2
Cahlan and I were able to talk our employer into buying Flex 2 for use in several projects over the last 2 months. Everyone of the projects had forms and needed form validation. There are many different ways to validate forms in Flex. Which can make it hard to know what is the best method to use. Thru trial and error, this is the best and simplest solution I came up with for validating forms in most all situations.
Sample Application
Source Application

2 Comments:
This is a good first approach, but I see space for improvement.
1.Place an asterisk for required field.
2.I think that the user experience is sort of lost when the red boxes come up. As a developer I understand what it means, but for people who aren't I see them getting lost. Don't feel bad on this one I haven't one person get it right. I am not a personal fan of the way flex does validation. You have to rollover the textfield to get a message. Personally I think this is not a good practice. Instead the message should be pronouced.
Very useful, Thanks!
Post a Comment
Links to this post:
Create a Link
<< Home