SaveSurveyForm: Difference between revisions
From LimeSurvey Manual
DenisChenu (talk | contribs) Page creation, please correct english … |
DenisChenu (talk | contribs) m some italic |
||
Line 7: | Line 7: | ||
== Input == | == Input == | ||
* surveyid : the related survey id | * ''surveyid'' : the related survey id | ||
* state : Sate of the form : show at first or validate when validate user entered values. | * ''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. | * ''aSaveErrors'' : array of string for errors, if empty : no errors. | ||
* saveData : associative array the current saved data: | * ''saveData'' : associative array the current saved data: | ||
** identifier : the identifier of the saved data (username) | ** <code>identifier</code> : the identifier of the saved data (username) | ||
** email : email used for the saved data | ** <code>email</code> : email used for the saved data | ||
** clearpassword : string to set as access_code before crypt (password) | ** <code>clearpassword</code> : string to set as access_code before crypt (password) | ||
** clearpasswordconfirm : string for comparaison | ** <code>clearpasswordconfirm</code> : string for comparaison | ||
== Possible output == | == Possible output == | ||
* aSaveErrors : can be updated by plugin, if not empty : form is shown with error. By default core control (in this order): | * ''aSaveErrors'' : can be updated by plugin, if not empty : form is shown with error. By default core control (in this order): | ||
** empty identifier | ** empty identifier | ||
** empty clearpassword | ** empty clearpassword | ||
Line 25: | Line 25: | ||
** unicity of identifier | ** unicity of identifier | ||
** validity of captcha (if enable) | ** validity of captcha (if enable) | ||
* saveData | * ''saveData'' | ||
== Sample plugins == | == Sample plugins == |
Revision as of 17:08, 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