On 12.07.2004 09:39, Jens Maukisch wrote:
I have two field widgets (datatype date) in my form and I want to validate them against each other with some javascript code.
The validation rule for the first widget is, that the date must be after today and the js-code looks like this:
...
The date of the second widget must be after the date of the first widget. The js-code looks like this (it might work with fd:assert as well, but it should not matter atm);
...
The problem is that if the first widget is not valid and i want to validate the second widget, the value of widget1 (widget1.getValue()) is always null.
Are you sure? The invalid value is always passed to the view again, so it can't be null.
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
