try to use it with a fix date to see if it work correctly. Then you can use change event to set that properties. For example, if a user choose first the date to then the date from rangeend should be also updated you can trigger this settings when a change event is trigerred. after you finished this then you can go to the validator. This weekend i can try to create one and share it
> Date: Thu, 26 Sep 2013 15:35:09 +0200 > Subject: Re: Validate two fields in a validator > From: shervin.asg...@webstep.no > To: users@flex.apache.org > > 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.d...@c-ware.de <christofer.d...@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.asg...@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 > >