x

Capítulos principales

  1. LimeSurvey Cloud frente a LimeSurvey CE
  2. LimeSurvey Cloud - Guía de inicio rápido
  3. LimeSurvey CE - Instalación
  4. Cómo diseñar una buena encuesta (Guía)
  5. Empezando
  6. Configuración de LimeSurvey
  7. Introducción - Encuestas
  8. Ver la configuración de la encuesta
  9. Ver menú de encuesta
  10. Ver estructura de la encuesta
  11. Introducción - Preguntas
  12. Introducción - Grupos de preguntas
  13. Introducción - Encuestas - Gestión
  14. Opciones de la barra de herramientas de la encuesta
  15. Encuesta multilingüe
  16. Guía de inicio rápido - ExpressionScript
  17. Características avanzadas
  18. Preguntas frecuentes generales
  19. Solución de problemas
  20. Soluciones alternativas
  21. Licencia
  22. Registro de cambios de versión
  23. Complementos - Avanzado
 Actions

Respuestas predeterminadas

From LimeSurvey Manual

Revision as of 07:44, 4 September 2023 by Maren.fritz (talk | contribs) (Created page with "Puede asignar para diferentes tipos de preguntas un valor predeterminado que se registrará en el caso de que el participante de la encuesta se salte la pregunta o decida que...")


Introducción

Puede asignar para diferentes tipos de preguntas un valor predeterminado que se registrará en el caso de que el participante de la encuesta se salte la pregunta o decida que está satisfecho con la respuesta predeterminada proporcionada. Para acceder a esta opción, busque el botón editar respuestas predeterminadas ubicado en el panel de preguntas:



Valid values

  • For single choice questions, you will see drop-down boxes from where you can select the desired default value.
  • For multi-choice questions, you will see checkboxes from where you can select the desired default state (checked or not checked).
  • For text-entry questions, you will have a text entry field in which you can enter any string or expression. If you use an expression, curly brackets must be used.
  • For date-time questions, if you set a fixed value the format of the fixed value needs to be YYYY-MM-DD (for example: 2022-02-28). If you're using an expression to set a date, the format must be like date ('Y-m-d') or date ('Y-m-d H:s'). For example, if you want to set the current time as default in a date question with format HH:MM (hour and minute), you would have to use the full-time format in the default answer box: date ('Y-m-d H:s'). The format in the expression is independent of the format from the question settings.
  Attention:



Default value with ExpressionScript

Only "Text" and "Yes/No" question types allow the survey administrator to make use of the LimeSurvey ExpressionScript to change the default value. For all the other question types you can use assignment operators.


Example

  • You have a non-anonymous survey, where {TOKEN:ATTRIBUTE_1} is the person's age as of the time the survey participants table was created. You want to prefill a question/default answer with the person's age and ask them to validate the age or to let him or her change the age value if it is not accurate. To do that, enter {TOKEN:ATTRIBUTE_1} in the text entry field for the default answer.