BeforeSurveyActivate
From LimeSurvey Manual
When
This event is fired just before the survey is activated.
Input
The event receives the following information:
surveyId the id of the current survey
simulate
Possible output
The following information can be set in the event:
success False will abort the activation
message Error message to show. This will be shown independent of success
Example