Using the DateValidator to validate a single source input : TextInput Validation « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » TextInput ValidationScreenshots 
Using the DateValidator to validate a single source input
Using the DateValidator to validate a single source input
        
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    
    <mx:DateValidator source="{birthday}" 
                      property="text"
                      inputFormat="mm/dd/yyyy" 
                      allowedFormatChars="/"
                      trigger="{submitButton}" 
                      triggerEvent="click" />
    
    <mx:Text text="Enter your birth date:" />
    
    <mx:TextInput id="birthday" />
    
    <mx:Button label="Submit" id="submitButton" />
</mx:Application>

   
    
    
    
    
    
    
    
  
Related examples in the same category
1.Use validator for TextInput fieldsUse validator for TextInput fields
2.Validate a form made up of several TextInput controlsValidate a form made up of several TextInput controls
3.TextInput invalid and valid eventTextInput invalid and valid event
www__._ja___v__a2___s.c_om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.