BeforeSurveyActivate: Difference between revisions
From LimeSurvey Manual
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
! Name !! Type !! Description | ! Name !! Type !! Description | ||
|- | |- | ||
| surveyid || | | surveyid || integer || The id of the current survey | ||
|- | |- | ||
| simulate || boolean || - | | simulate || boolean || - | ||
Line 23: | Line 23: | ||
The following information can be set in the event: | The following information can be set in the event: | ||
{| | |||
! Name !! Type !! Description | |||
|- | |||
| success || boolean || False will abort the activation | |||
|- | |||
| message || string || Error message to show. This will be shown independent of ''success'' | |||
|- | |||
| pluginFeedback || string || If set, will show this HTML instead of the default success feedback message | |||
|} | |||
Line 33: | Line 37: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
// todo | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Plugins events]] | [[Category:Plugins events]] |
Revision as of 16:14, 18 August 2016
When
This event is fired just before the survey is activated.
Input
The event receives the following information:
Name | Type | Description |
---|---|---|
surveyid | integer | The id of the current survey |
simulate | boolean | - |
Possible output
The following information can be set in the event:
Name | Type | Description |
---|---|---|
success | boolean | False will abort the activation |
message | string | Error message to show. This will be shown independent of success |
pluginFeedback | string | If set, will show this HTML instead of the default success feedback message |
Example
// todo