Módulo Encuestapro

De MoodleDocs
(Redirigido desde «Módulo Surveypro»)

Nota: Pendiente de Traducir. ¡Anímese a traducir esta página!.     ( y otras páginas pendientes)

Nota: Esta página de documentación de Moodle para usuarios es para el módulo Surveypro que actualmente está en https://moodle.org/plugins/mod_surveypro y que optimísticamente un día se incluirá en el núcleo de Moodle y remplazará Encuesta predefinida y Cuestionario.


This module comes from the need to perform a very closely validated data collection to gather customized data. It allows the creation of custom survey assembling fields and format elements. Fields and formats, usually called "elements", are two of the four managed plugin. Surveypro plugins include: fields, formats, templates and report.

Principales características

Surveypro se envía con un conjunto de 21 elementos integrados como complementos. Incluyen 17 campos y 4 formatos. Los "campos" son los elementos de usuario que necesita el estudiante para ingresar sus respuestas, mientras que los "formatos" son elementos de solo lectura como saltos de página, conjuntos de campos o etiquetas. Si no puede encontrar el campo o el formato que necesita, siempre puede pedirle a un desarrollador que cree el complemento que se ajuste a sus necesidades. Los elementos "Campos" comparten un conjunto de propiedades. Además de estos, cada campo gestiona sus propias características específicas. Entre las propiedades comunes, por lo general, se pueden encontrar: obligatorio, sangría, posición del contenido del elemento, número personalizado, nombre de variable, nota, disponibilidad, validación, defecto y ramificación. El significado de las propiedades menos comunes es:

  • La nota es texto libre que el profesor de edición puede utilizar para proporcionar una explicación personalizada de un elemento.
  • La disponibilidad define quién verá el campo en el formulario. Puede ser: - todos: cada usuario verá el campo en el formulario de la encuesta; - oculto: ningún usuario verá el campo en el formulario de la encuesta; - reservado: solo los estudiantes con permisos específicos (accessreserveditems) verán el campo en el formulario de la encuesta; - búsqueda: el campo también estará disponible en el formulario de búsqueda (si no está oculto).
  • Las opciones de validación definen el rango de respuestas permitidas para los estudiantes.
  • Por defecto es lo que mostrará el formulario en blanco como valor predefinido de un elemento.

Surveypro ships with a set of 21 built-in elements as plugins. They include 17 fields and 4 formats. "Fields" are the user items needed by the student to enter their responses while "formats" are read-only elements like page break, fieldset or labels. If you can't find the field or the format you need, you can always ask a developer to build the plugin closely matching your needs. "Fields" elements share a set of properties. In addition to these, each field manages its own specific features. Among common properties, usually, can be found: mandatory, indent, position of the element content, custom number, variable name, note, availability, validation, default and branching. The meaning of the less common properties is:

  • Note is free text that the editing teacher can use to provide a custom explanation of an element.
  • Availability defines who will see the field in the form. It can be: -- all: each user will see the field in the survey form; -- hidden: not any user will see the field in the survey form; -- reserved: only students with specific permissions (accessreserveditems) will see the field in the survey form; -- search: the field will be available in the search form too (if not hidden).
  • Validation options define the range of allowed responses for the students.
  • Default is what the blank form will display as predefined value of an element.

Idiomas disponibles

  • The author of the Surveypro has translated many of the English language strings into italian. The italian language strings are included in the downloadable ZIP file.
  • The Mexican Spanish language pack maintainer has translated 100% of all language strings. You can ask him for a Spanish translation by sending an Email to gvalero@unam.mx
  • AMOS translations will be made when the plugin is accepted into the Moodle plugins library.


Surveypro actualmente (octubre 2016) está alojado en https://github.com/kordan/moodle-mod_surveypro. Surveypro is currently (october 2016) hosted in https://github.com/kordan/moodle-mod_surveypro. Esperamos que algún dia sea integrado dentro del núcleo de Moodle Hopefully, one day it will be submitted into Moodle to become part of Moodle core.


Download and expand the ZIP file into /Moodle/mod/Surveypro Visit the Notifications page to finish installation.


Templates are divided into two subcategories: user-templates and master-templates. Master template is the plugin to quickly create a classic survey such as ATTLS, COLLES's or Critical Incidents. Editing teacher is allowed to create his own master templates based on a manually created survey. The added value of master templates is the multilanguage behaviour. Once a course creator saves a survey as master template, in order to use it in a different moodle instance, he needs to copy it to the filesystem of the target moodle instance and to navigate the notification page. Each language added to the lang folder of the master template package will be available to students in the target moodle instance. This means that the same survey will be served to students in their own language, whether available. User template is the plugin for editing teachers to quickly make snapshots of surveys to share and apply them a second time without the need to copy them to the filesystem. Case uses for user templates are, for instance, 1) An editing teacher is frequently called to create custom surveys where a fixed set of elements is included. Let's say: First name, Last name, Date of birth, Gender. To save time, the editing teacher can create a surveypro including this set of elements and then save the corresponding user-template. Later, whenever he/she is called to create a new instance of surveypro with the set of elements of the first surveypro, he/she will apply the generated user-template to the new instance. All fields of the user-template will be included at once. 2) An editing teacher is asked to create the same surveypro in different courses. He can store a usertemplate at some level (category level, user level, or site level as last chance) and he/she will find it in each new course (of the same shared level) ready to be applied. 3) Two editing teachers are working on their local moodle instance drafting the same surveypro. Saving and sharing by email the corresponding usertemplate is a quick way to share progress achieved.


Report is the plugin to make report of the gathered data. Reports are available from the administration menu. COLLES's report manages the same graphs as the current Moodle core survey module. Reports are pluggable so if you can't find the report matching your needs, you can always ask a developer to develop the one you really need and add it to your surveypro copy.


Each element can be defined as "child" of a different element upon a condition. Each element can have more than one child, but can only have one parent through a simple "parent = answer" condition. This means that it is possible to create a three elements surveypro, for instance, where the availability of the last two items depends from the answer provided by the student to the first element. The first element, in this example, has two children while each child has only one parent.

BasesdeaDatos relacionales

Surveypro can be used to create a relational database. Surveypro can not strictly create a relational database but gives a way to help in this purpose. Once an editing teacher creates a survey he/she can include an autofill element. This can be configured to auto-answer information about the user or the moodle course holding the surveypro instance or the surveypro instance itself. Let's imagine an editing teacher creates two surveypro instances. One asking for information about the living country of the student and one about habits of each of his/her family member. Once each surveypro is equipped with an autofill element providing the student userid it will be simple, once downloaded each gathered record, to make the 1 to n relation between the data taken from the two different surveypro. Surveypro is not relational but a relation can be established between data downloaded from different surveypro.

Groups of students entering shared responses

Usually the response provided by a student is NEVER displayed to the other students. All is covered by a kind of privacy. In spite of this, if a group of students is supposed to fill the same surveypro several times within the frame of the same research, each member of the group should be allowed to see, edit and, eventually, delete responses from each other member of his/her same group. This goal is reached making groups at course or surveypro instance level and providing special permissions (seeotherssubmissions, editotherssubmissions, deleteotherssubmissions) to students. Students of group A will never "see" the responses from students of group B but within the same group each student will be allowed to see/edit/delete the responses from people of his/her own group.

Otras características

Responses can be searched and exported.

A few more features are available at instance level like:

  • Branches increase pages
  • Allow Save/Resume
  • Preserve history
  • Anonymous reponses
  • Custom style sheet
  • Maximum attempts
  • Notify role
  • More notifications
  • Thanks web page
  • Deadline of risky modification session Help buttons in the module provide a quick explanation of each of those settings.

Surveypro settings

..to be continued...

Surveypro layout preview

... to be continued...

Surveypro layout elements

... to be continued...

Surveypro import

... to be continued...

Surveypro export

... to be continued...

Surveypro manage user templates

... to be continued...

Surveypro save user templates

... to be continued...

Surveypro import user templates

... to be continued...

Surveypro save master templates

... to be continued...

Surveypro reports

Atachments overview

Delayed users

Frequency distribution

Responses per user

Users per count of responses=

Características que faltan todavía

What is really missing is the automatic conversion of current Moodle core survey module. I wonder if people do really request this feature.

Problemas conocidos

If a long text using the html editor has a parent item, it is NOT disabled while the answer to the parent item does not match the condition required by the child. MDL-25067: mform editor element can not be disabled with mform->disabledIf method.

Surveypro icons are missing from head/admin/plugins.php overview report. MDL-45723: uniformize the handling of svgs in resolve_image_location() calls.

Please report issues about this module in the tracker: https://tracker.moodle.org using: Project: Plugins (CONTRIB) Component/s: Module: Survey Pro

Documentación para desarrolladores

Documentation (very old and outdated): https://docs.moodle.org/dev/Survey_2_module


Danielle Cordella


Thanks to Joseph Rézeau for the revision of the text and the English.

... continuará...