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

FechaFunciones

From LimeSurvey Manual

Revision as of 14:48, 31 August 2023 by Maren.fritz (talk | contribs) (Created page with "{{Función inicial|5.XY}}")

Template:Función inicial

Usage

Functions for the ExpressionScript engine to handle date variables:

  • localize_date(date[, language = null]): Formats a date according to the Survey's date format for the specified language.
    • The date given should follow the following format "Y-m-d H:i:s", which is for example the one used by the TOKEN:VALIDFROM variable.
    • The language used for localization defaults to current session language. If the current language is not configured in the survey, the survey base language will be used. When using in email templates, please use the token language as parameter as to set the expected language. Example: TOKEN:LANGUAGE

This plugin uses the ExpressionManagerStart plugin, and it creates this function. These 2 functions don't use JavaScript, so they are fully executed by the server. In case the function is used while taking a survey, the function will be executed only when the respondent moves ahead in the survey.

  Before using these functions, the plugin must be activated in Plugin Manager.


Usage Example on Welcome Message

Usage Example on Email Template