x

Main chapters

  1. LimeSurvey Cloud vs LimeSurvey CE
  2. LimeSurvey Cloud - Quick start guide
  3. LimeSurvey CE - Installation
  4. How to design a good survey (Guide)
  5. Getting started
  6. LimeSurvey configuration
  7. Introduction - Surveys
  8. View survey settings
  9. View survey menu
  10. View survey structure
  11. Introduction - Questions
  12. Introduction - Question Groups
  13. Introduction - Surveys - Management
  14. Survey toolbar options
  15. Multilingual survey
  16. Quick start guide - ExpressionScript
  17. Advanced features
  18. General FAQ
  19. Troubleshooting
  20. Workarounds
  21. License
  22. Version change log
  23. Plugins - Advanced
 Actions

SaveSurveyForm

From LimeSurvey Manual

Revision as of 16:11, 30 March 2022 by DenisChenu (talk | contribs) (Possible output: saveData)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 Hint: This features is available starting in version 5.3.8


Usage

This event happen when save form is shown to user, and when data sent to user are validated before showing it again)

Input

  • surveyid : the related survey id
  • state : Sate of the form : show at first or validate when validate user entered values.
  • aSaveErrors : array of string for errors, if empty : no errors.
  • saveData : associative array the current saved data:
    • identifier : the identifier of the saved data (username)
    • email : email used for the saved data
    • clearpassword : string to set as access_code before crypt (password)
    • clearpasswordconfirm : string for comparaison

Possible output

  • aSaveErrors : can be updated by plugin, if not empty : form is shown with error. By default core control (in this order):
    • empty identifier
    • empty clearpassword
    • if clearpassword and clearpasswordconfirm match
    • identifier must not contain identifier /, & and \\
    • unicity of identifier
    • validity of captcha (if enable)
  • saveData you can update data before save it , only identifier, email and clearpassword is used in model.

Sample plugins