cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@hippo.nl>
Subject Re: CForms: multiple fd:submit
Date Thu, 16 Mar 2006 13:09:33 GMT
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


Mime
View raw message