Re: [CForms] validation + value-on-changed

2006-02-11 Thread Robin Wyles
Simone, Thanks for the explanation which clarifies things greatly, and also explains the behavior I was seeing. In my case the validation was indeed being triggered by a call to the widget's getValue within my on-value-changed event handler. An explicit call to validate() in my event hand

Re: [CForms] validation + value-on-changed

2006-02-09 Thread Simone Gianni
Hi Robin, AFAIK widgets are validated in two cases : - When getValue is explictly called - When validate is called This means that in a normal form usage, they are validated : - If another component (say, an event listener) calls the getValue() for some reason. - If a submit button is pressed (

[CForms] validation + value-on-changed

2006-02-09 Thread Robin Wyles
Hi All, I have a text field with custom validation and a value-on-changed event listener... return validateVideoKey(widget); updateFiles(event.source);