Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 46055 invoked from network); 16 Mar 2006 13:10:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Mar 2006 13:10:03 -0000 Received: (qmail 1373 invoked by uid 500); 16 Mar 2006 13:09:56 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 1311 invoked by uid 500); 16 Mar 2006 13:09:56 -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 1300 invoked by uid 99); 16 Mar 2006 13:09:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 05:09:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.133.33.30] (HELO mailrelay.is.nl) (213.133.33.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 05:09:55 -0800 Received: from [213.133.51.241] (HELO hai01.hippo.local) by mailrelay.is.nl (CommuniGate Pro SMTP 4.3.5) with ESMTP id 13434004 for users@cocoon.apache.org; Thu, 16 Mar 2006 14:09:33 +0100 Received: from [10.10.100.205] ([10.10.100.205]) by hai01.hippo.local with Microsoft SMTPSVC(5.0.2195.6713); Thu, 16 Mar 2006 14:09:33 +0100 Message-ID: <4419638D.6070705@hippo.nl> Date: Thu, 16 Mar 2006 14:09:33 +0100 From: Jeroen Reijn Reply-To: j.reijn@hippo.nl Organization: Hippo User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: CForms: multiple fd:submit References: <8D8D5C193740B04894FA6AA9F767A4E5015F2E00@tlrchbermbx01.ERF.THOMSON.COM> In-Reply-To: <8D8D5C193740B04894FA6AA9F767A4E5015F2E00@tlrchbermbx01.ERF.THOMSON.COM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Mar 2006 13:09:33.0781 (UTC) FILETIME=[DE741050:01C648FA] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Fernando, You can react in flow based on the submitId of the form. You can request the submitId from flow by using: form.submitId Example: form.showForm(); switch(form.submitId) { case "details": showDetails(); break; case "create": createNew(); break; case "cart": redisplayForm = false; showCart(); break; case "ok": redisplayForm = false; processForm(form); break; } I found the example in the archives. Regards, Reijn Fernando.Matomira@thomson.com wrote: > How can one react differently in a flow when there are several fd:submit > elements in a form? > > > > Thanks > Kind regards, Jeroen Reijn Hippo --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org