I want to have a ZIP code validator ignore the zip code field, if the
country is not the USA or Canada.
I can't seem to get it to do this -- I have an editable combo box
that contains a list of countries to choose from (or you can type in
the name of a country if it's not in the list.) If the user chooses
USA or Canada, I want the ZipCodeValidator to do its thing, otherwise
I want it to ignore the ZipCode field.
I've tried setting the ZipCodeValidator's source=null when the
country is changed to something other than USA or Canada, but that
doesn't seem to work. It still pops up an error message saying it's
an invalid zip code.
If, instead of setting a 'source' property in the ZipCodeValidator's
MXML, I use my own custom function to run a check for a .VALID
condition, it doesn't pop up any error messages at all, ever. (The
.VALID check *does* work, though -- it returns .VALID only when it's
a valid code -- it just doesn't pop up the red error text, ever).
So how do I get it to pop up error messages when I want them, and
ignore the field completely when I don't want error messages?
Laurence MacNeill
Mableton, Georgia, USA
-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line
For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------