flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shervin Asgari <shervin.asg...@webstep.no>
Subject Re: Validate two fields in a validator
Date Thu, 26 Sep 2013 13:35:09 GMT
This is what I have tried to do unsuccessful for now.

I will keep at it.

The startRange seemed like a good idea, but I haven't made that work yet.

I have tried to do something like this: inputDate.selectableRange =
{rangeStart: otherInputDate.selectedDate};
However when I click the calendar button, it shows the year as 0
Clearly something is wrong

2013/9/26 christofer.dutz@c-ware.de <christofer.dutz@c-ware.de>

> As you Need to validate if the date field changes or the reference date
> changes, you will Need to build a custom Validator which you can then bind
> to both fields.
> Chris
> ________________________________________
> Von: Shervin Asgari [shervin.asgari@webstep.no]
> Gesendet: Donnerstag, 26. September 2013 14:14
> An: users@flex.apache.org
> Betreff: Validate two fields in a validator
> Hi.
> I have a date validator on each field which validates if they are a correct
> date.
> However, in one of the two date fields, I need to validate if it is after
> the other date.
> So this means I have to somehow get the other inputfield date in my
> validator.
> I have tried to do this using a listener on the other field, but it
> retrieves null.
> Any ideas how I can do this?
> Shervin

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message