You can do this much easier by defining validation rules on the form definition. There are a number of validation rules available, including a rule that uses javascript to validate. See the Cocoon docs:
http://cocoon.apache.org/2.1/userdocs/forms/validation.html > -----Original Message----- > From: Philipp Rech [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 03, 2004 10:41 AM > To: [EMAIL PROTECTED] > Subject: CForms: how 2 lookup all widgets at once > > Hello, > > i am looking for a Flowscript functionality that checks (at once) if all > fields in a form are selected or filled out (not empty). > > --- the flow part ------- > > if (widget.lookupWidget(*) == NULL) { > >>>>display a hint that you are done here>>> > } > ------------------------- > > I am not shure how to check all widgets at once? The > "widget.lookupWidget(*) == NULL" > was just a guess... *wonders* > > I am using CForms within Cocoon (2.1.5.1). > Thank you in advance, > phil > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
