DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:questionnaire

questionnaire Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" yes
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" unknown

plugin Create simple questionnaires and collect data from your users

Last updated on
2024-06-24
Provides
Syntax
Repository
Source
Requires
sqlite

Tagged with poll, questionnaire, survey

Installation

This plugin requires the sqlite plugin. Install it first.

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Workflow

The plugin allows to define a questionnaire using a simple, YAML based configuration defined in syntax.

Once an administrator has activated the questionnaire, logged in users can answer the questions. Administrators can close the questionnaire again.

Only one questionnaire per page can be defined!

Syntax

The YAML syntax to configure the questionnaire needs to be placed between <questionnaire></questionnaire> tags.

Here is an example:

<questionnaire>
wikis:
    q: Which Wikis do you know?
    t: multi
    a:
      - DokuWiki
      - MediaWiki
      - TikiWiki
happyness:
    q: How happy are you with DokuWii?
    t: single
    a:
      - very happy
      - somewhat happy
      - somewhat unhappy
      - very unhappy
improvements:
    q: How would you improve the Wiki?
    t: text
</questionnaire>

As you can see, each question is defined by an arbitrary key. Under this key the following properties can be defined:

  • q - The full question
  • t - The type of question, currently available:
    • multi - The user can pick one or more answers (checkboxes)
    • single - The user needs to pick exactly one answer (radio boxes)
    • text - The user may enter arbitrary text
  • a - A list of possible answers for multi and single types

All answers are mandatory before the data can be submitted. Users can only submit their data once.

Accessing the Data

Administrators can download the available answers as CSV file.

plugin/questionnaire.txt · Last modified: by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki