Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 79347 invoked from network); 29 Jun 2005 09:25:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2005 09:25:23 -0000 Received: (qmail 30758 invoked by uid 500); 29 Jun 2005 09:25:12 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 30743 invoked by uid 500); 29 Jun 2005 09:25:12 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 30729 invoked by uid 99); 29 Jun 2005 09:25:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [158.38.60.10] (HELO tyholt.uninett.no) (158.38.60.10) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2005 02:25:11 -0700 Received: from tehran (leangen.uninett.no [158.38.60.11]) by tyholt.uninett.no (8.12.10/8.12.10) with ESMTP id j5T9MuIh006168 for ; Wed, 29 Jun 2005 11:22:57 +0200 Message-Id: <200506290922.j5T9MuIh006168@tyholt.uninett.no> From: "Armaz Mellati" To: Subject: CForms: Validation based on values from several widgets Date: Wed, 29 Jun 2005 11:23:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcV8jCdO8Gwxv2+ZQA+BvhI57bH+qg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi What is the best way of validating based on the values of several widgets in a CForm ? I mean somthing like this: If (model.foo == 'something') && (model.bar == null) { return false; }else{ return true ; } Where should I do or can I do such a validation ? Any idea ?? Regards, Armaz --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org