You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by nira bal <ni...@yahoo.com> on 2005/06/10 06:09:06 UTC

cocoon forms sample

Currently we are interested in developing advanced forms using cocoon piplines.I have browse through the information required to build the forms under CForms Block Samples-basic examples/various (actions). The sitemap.xmap file contains all forms and flow script. I just confused to build one. Could send the source code to build , for the just various action forms.  NiraContact on
    nira_bal@yahoo.com

 

 

 

 

sample required:

Content ViewSourceSitemap 
Sample form
 [input] 

 [input]  will constitute a tab -->

String fieldsNumber fieldsBoolean fields 

Enter an email address:

 [input] *       var helpWinN1004E = forms_createPopupWindow('helpN1004E');  

Select something that's 4 characters long:

 aaaaaaaaaaaaaaa

Please enter a number
(will automatically set a correct value below if needed):

 [input] * 

Enter another number, larger than the other number:

 [input] * 

Indicate the size of your bank account (in m3):

 12three45

Indicate your height (in cows):

 [input] 

1

 

 [input] 

2

 [input] 

three

 [input] 

4

 [input] 

5



 

 [input]  Put me on or off. 

Indicate which 2 of the following drinks you'd like to receive:

Available drinks

 

Your selection

 Coca ColaHoegaardenJupilerLeffeMaes

   [input] ">  
   [input] >">  
   [input]   
   [input]   



        var optN1010E = forms_createOptionTransfer('drinks', false); 

      if (window.onTabShownHandlers == undefined)        window.onTabShownHandlers = new Object();      var currentHandlers = new Object();      var initialHandler = null;      window.onTabShownHandlers["N10026"] = currentHandlers;            if (initialHandler != null) {        eval(initialHandler);        initialHandler = null;      }Checkout the form1 flow page for another way of formatting panels


Misc controls   


Enter your (16-digit) visa number (without spaces) 
Your credit card will be billed. 
Valid test number is: 4111111111111111 

 [input] *       var helpWinN10155 = forms_createPopupWindow('helpN10155'); 

Please enter your IP address

 [input] * 

Select a date on which you'd rather had been born:

 Wednesday, 11 July 1302Sunday, 23 June 1912Monday, 21 July 1969Wednesday, 6 May 1970Saturday, 14 October 1978Tuesday, 11 September 2001* 

Select another date on which you'd rather had been born:

 Wednesday, 1 January 2003Thursday, 1 January 2004Monday, 6 June 2005* 

Your birthdate (dd/MM/yyyy):

 [input]  * 

Price for a liter diesel:

 [input] * 



 [input]  


Firstname

Lastname

Phone

Email

Birthdate (dd/MM/yyyy):

Select

 [input] 

 [input] 

 [input] 

 [input] 

 [input]  

 [input] 

 [input] 

 [input] 

 [input] 

 [input] 

 [input]  

 [input] 

 [input]  [input] 

 

 

 [input] 

An email address must be in [name]@[domain].[tld] format. 
And if you do not know what email address is, then well, chances are that you do not have it. However, if you have access to the Internet, you can easily get yourself one! 
Choose one of the following options: 

   Yahoo! Mail 
   Hotmail 

Anyway, the point of all this was to show a popup help with mixed html content. 

Use a fake number if Cocoon is not running on your local computer

 





		
---------------------------------
Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.