cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject CForms - multiple submission buttons ?
Date Mon, 26 Jul 2004 09:02:19 GMT
I am trying to work out how to get different
pages being displayed from a CForm submission,
depending on different submission buttons...

For one submission buttton, I have:

<ft:form-template action="#{$continuation/id}.continue" method="POST">
  ...
  <input type="submit"/>
</ft:form-template>

In the flowscript, this then results in a 
  form.save(document);
being attempted.


I would like to have a number of input buttons, and 
depending on which is pressed, handle this in the 
flowscript along the lines of:

if (buttonPushed == "btn1") {  
  cocoon.sendPage("test1")
}

if (buttonPushed == "btn2") {  
  cocoon.sendPage("test2")
}

and so on...

Is this possible and, if so, how?

Thanks
Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message