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 = inputs responsive
{{#CI form section: type = inputs responsive
| first and last name [] *
| first and last name [] *
Line 319: Line 317:
{{#CI form section: type = inputs
{{#CI form section: type = inputs
| title = 8. How much do you like the following?  (1 = not at all, 5 = extremely)
| title = 8. How much do you like the following?  (1 = not at all, 5 = extremely)
| Ballet [Chose one=select=1,2,3,5,No answer] Jazz [Chose one=select=1,2,3,5,No answer]
| Ballet [Chose one=select=1,2,3,5,No answer]
| Ballroom [Chose one=select=1,2,3,5,No answer] Tap [Chose one=select=1,2,3,5,No answer]
| Jazz [Chose one=select=1,2,3,5,No answer]
| Contemporary [Chose one=select=1,2,3,5,No answer] Hip Hop [Chose one=select=1,2,3,5,No answer]
| Ballroom [Chose one=select=1,2,3,5,No answer]
| Tap [Chose one=select=1,2,3,5,No answer]
| Contemporary [Chose one=select=1,2,3,5,No answer]
| Hip Hop [Chose one=select=1,2,3,5,No answer]
}}
}}


Line 369: Line 370:
{{#CI form section: type = inputs responsive
{{#CI form section: type = inputs responsive
| title = 14. For each of these issues, how severe and bothersome are they?
| title = 14. For each of these issues, how severe and bothersome are they?
| Financial woes [Chose one=select=Mild Severity,Moderate Severity,Extreme Severity,Mild Bothersomeness,Moderate Bothersomeness,Extreme Bothersomeness,No answer]
| Financial woes [Chose one=select=Mild Severity,Moderate Severity,Extreme Severity,Mild Bothersomeness,Moderate Bothersomeness,Extreme Bothersomeness,,No answer]
| Health concerns [Chose one=select=Mild Severity,Moderate Severity,Extreme Severity,Mild Bothersomeness,Moderate Bothersomeness,Extreme Bothersomeness,No answer]
| Health concerns [Chose one=select=Mild Severity,Moderate Severity,Extreme Severity,Mild Bothersomeness,Moderate Bothersomeness,Extreme Bothersomeness,,No answer]
| Ability to get your doctors to listen [Chose one=select=Mild Severity,Moderate Severity,Extreme Severity,Mild Bothersomeness,Moderate Bothersomeness,Extreme Bothersomeness,No answer]
| Ability to get your doctors to listen [Chose one=select=Mild Severity,Moderate Severity,Extreme Severity,Mild Bothersomeness,Moderate Bothersomeness,Extreme Bothersomeness,,No answer]
}}
}}


Line 391: Line 392:




{{#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}}|*|,}}]
}}
{{#CI form section: type = inputs responsive
| title = 19. How old are the following people (or how old were they when they died)?
| Yourself [number]
| Your mother [number]
| Your father [number]
}}
{{#CI form section: type = inputs responsive
| title = 20. How old are you?
| [number]
}}
{{#CI form section: type = cloze test | css-class= ciform-favorite-activities
| title = 21. Please rate your  favorite activities:
| [] Sleeping
| [] Programming
| [] Watching television
| [] Time with family
}}
{{#CI form section: type = inputs
| 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)?
}}
{{#CI form section: type = multiple choice
| title = 23. Do you love CIForms ?
| yes {{#fas:check}}
| no {{#fas:ban}}
| no answer {{#far:circle}}
}}
{{#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)