SaveSurveyForm: Difference between revisions
From LimeSurvey Manual
DenisChenu (talk | contribs) m some italic |
DenisChenu (talk | contribs) m →Possible output: saveData |
||
Line 25: | Line 25: | ||
** unicity of identifier | ** unicity of identifier | ||
** validity of captcha (if enable) | ** validity of captcha (if enable) | ||
* ''saveData'' | * ''saveData'' you can update data before save it , only identifier, email and clearpassword is used in model. | ||
== Sample plugins == | == Sample plugins == |
Latest revision as of 17:11, 30 March 2022
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 dataclearpassword
: 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.