Advertisement

05.13.2008 at 08:19AM PDT, ID: 23398139
[x]
Attachment Details

flex validator, checking custom conditions

Asked by NewtonianB in Adobe Flex, Web Languages/Standards

Tags: Flex

Is there a way to add a custom condiiton to the NumberValidator.
I would like it to check if xmax is greater than xmin otherwise I want the validation to fail and the border around the input field to highlight in red like is usually done when validation fails.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
<mx:NumberValidator 
    	id="xminV"
    	source="{xmin}"
    	property="text"
    	invalidCharError="input error"
	/>
 
	<mx:NumberValidator 
    	id="xmaxV"
    	source="{xmax}"
    	property="text"
    	invalidCharError="input error"
	/>
[+][-]05.13.2008 at 09:23AM PDT, ID: 21556625

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Adobe Flex, Web Languages/Standards
Tags: Flex
Sign Up Now!
Solution Provided By: hobbit72
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628