Editing CIForms examples

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
==Basic, one column==   
==Basic, one column==   
    
    
This is the simplest form (type "inputs" by default, one column)
This is the smplest form (type "inputs" by default, one column)


The square brackets represent an input, the square brackets contain the input type, the asterisk indicates a mandatory field
The square brackets represent an input, the square brackets contain the input type, the asterisk indicates a mandatory field
Line 150: Line 150:
}}
}}


'''attention''': in order for this example to work, <code>$wgPFEnableStringFunctions</code> and
 
<code>$wgPFStringLengthLimit</code> must be set respectively to <code>true</code> and to an high value (for instance 10000) in your [https://www.mediawiki.org/wiki/Manual:LocalSettings.php LocalSettings.php], and [[Template:Countries|Template:Countries]] must exist
 


==Nested sections==
==Nested sections==
Line 233: Line 233:
}}
}}


== Steps & surveys ==  
== Steps & surveys ==
 
Inspired by https://demo.limesurvey.org/index.php?r=survey/index&sid=14272
Inspired by https://demo.limesurvey.org/index.php?r=survey/index&sid=14272


(css used [[Template:CIForms_examples/styles.css]] using the paramter <code>css-class</code>)
<templatestyles src="CIForms_examples/styles.css" />
<templatestyles src="CIForms_examples/styles.css" />


{{#CI form: title = Survey example  
{{#CI form: title = Survey example  
| email-to = abc@mail.com
| email-to = abc@mail.com
| paging = 4
| paging = 4, 4, 4, 4, 4
| css-class = form-limesurvey
| css-class = form-limesurvey
|
|
{{#CI form section: type = multiple choice
| title = 23. Do you love CIForms ?
| yes {{#fas:check}}
| no {{#fas:ban}}
| no answer {{#fas:circle-thin}}
}}


{{#CI form section: type = inputs responsive
{{#CI form section: type = inputs responsive
Line 391: Line 396:




{{#CI form section: type = inputs  
{{#CI form section: type = inputs responsive
| title = 18. Pick a new language
| title = 18. Pick a new language
| [Choose your language=select={{#replace:{{Template:Languages}}|*|,}}]
| [Choose your language=select={{#replace:{{Template:Languages}}|*|,}}]
Line 408: Line 413:
}}
}}


{{#CI form section: type = cloze test | css-class= ciform-favorite-activities
{{#CI form section: type = cloze test
| title = 21. Please rate your  favorite activities:
| title = 21. Please rate your  favorite activities:
| [] Sleeping
| [] Sleeping
Line 416: Line 421:
}}
}}


{{#CI form section: type = inputs
{{#CI form section: type = cloze test
| title = 22. This is just a text display.  Is the rendered value saved anywhere?  Is there a database field for it (e.g. to emulate the Equation question type)?
| title = 22. This is just a text display.  Is the rendered value saved anywhere?  Is there a database field for it (e.g. to emulate the Equation question type)?
}}
}}
Line 422: Line 427:
{{#CI form section: type = multiple choice
{{#CI form section: type = multiple choice
| title = 23. Do you love CIForms ?
| title = 23. Do you love CIForms ?
| yes {{#fas:check}}  
| yes {{#far:check}}  
| no {{#fas:ban}}  
| no {{#far:ban}}  
| no answer {{#far:circle}}
| no answer {{#far:cirle-thin}}
}}
 
{{#CI form section: type = inputs
| title = 24. Please paste your resume
| [textarea]
}}
}}
{{#CI form section: type = inputs
| title = 25. (let's skip this)
}}
{{#CI form section: type = cloze test  | list-type = none
| title = 26. What are the names of your best friends?
| Favorite Friend []
| Favorite Family Member []
| Favorite Co-Worker []
}}
{{#CI form section: type = inputs
| title = 27. What is your favorite food ?
| []
}}
{{#CI form section: type = multiple choice
| title = 28. Where would you like to vacation this year?
| Hawaii
| Bahamas
| Europe
| New Zealand
}}
{{#CI form section: type = multiple choice | max answers = 3
| title = 29. Which of the following  do you like?  Please comment why or why not for each.
| Junk Food []
| Reality TV []
| Excercise []
}}


}}
}}
Please note that all contributions to Wikisphere may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikisphere:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)