Extension:CIForms/fi

CIForms is a complete solution to quickly create input forms to immediately retrieve data from visitors, and they include a wide range of features, like native validation, nested sections, multiple choice questions with arbitrary inputs within lines and supporting all standard list style types, cloze tests, Google recaptcha, select & combobox, textarea with maxlength, submission groups (used to restrict the access to forms' submissions), and much more!

Forms submissions are both optionally sent as a pdf document to the provided email address(es), and stored in a dedicated table which can be accessed by permitted users through a Special Page. (from which each submission can be individually downloaded as a pdf document as well)

Asennus

 * Download the ZIP from Github, move inside the folder  and rename to.
 * Run  inside the folder   (this will install the dependencies phpmailer and dompdf required to send the pdf with form results to a given email address, or to download the form results as pdf)
 * Add  to LocalSettings.php
 * Run  (this will install the required tables)

Perus, yksi sarake
This is the simplest 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

which produces the following



(working example)

--

Placeholders
Form with placeholders. The square brackets contain the placeholder and optionally the input type after the equal symbol:

which produces the following:



(working example)

--

Kaksi saraketta
Inputs responsive (two columns), the square brackets contain the input type, the form rows can contain html (the label of the email input is bold)



(working example)

--

Multiple choice
Multiple choice with arbitrary text inputs between answers (on the last line in the example). Note that the input will be rendered as radio buttons (only one answer allowed). In order to display checkboxes allowing multiple answers just set the parameter  to a value greater than 1.



(working example)

--

Select
Select with placeholder and hardcoded options. Options contain commas ? Just escape them!



(working example)

--

Select with combobox
Select populated by wikitext (if the select contains more than 20 options CIForms will automatically display it as a select2 combobox)



(working example)

--

Nested sections
Form with nested sections. The multiple choice accepts up to 3 answers ("max answers=3") The textarea has a maxlength attribute ("[textarea=1000]")



(working example)

---

Cloze test
Cloze tests are mainly used to administer quizzes and tests.

Square brackets represent an input, a square bracket with text inside represents a suggestion. The asterisk represents an example sentence. Each row can contain an arbitrary number of inputs.



(working example)

Cloze test with suggestions
The list of suggestions is automatically shuffled and the inline suggestion is automatically canceled from the list. (line-through)



(working example)

... and more! check here for more examples!!

Special Page/Output
CIForms stores all the submissions in a table and all the available forms can be viewed and navigated through a special page, and even downloaded as pdf. Additionally, form results can be sent to a provided email address, as explained below.

This is a screenshot of the special page Submissions, with the list of form's submissions, grouped by title and the page where the form is placed, throughout the Wiki:



This is the list of submissions to a given form. The list can be navigated, and if the relevant dependencies are installed (see above, ), the form data can be immediately downloaded as pdf.



Configuration
Note that in order to be able to send email to the provided email address (usually the system administrator) with form submissions,  must be enabled, and PHPMailer must be installed as per  istructions.

Parameters
The following parameters can be used in the parser function  or