- Posts: 21
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
Save IP address: [ ] Save referrer URL: [ ] Google Analytics settings: None Anonymized responses: [x]
enforce can be done easily with some php in a plugin.jelo wrote: There is currently no way to assign settings as a default or enforce settings to certain usergroups.
public function beforeSurveySave() { $oSurvey = $this->getEvent()->get('model'); $oSurvey->anonymized = 'Y'; }
<?php class AnonOnly extends \LimeSurvey\PluginManager\PluginBase { static protected $name = 'AnonOnly'; static protected $description = 'forces all surveys to be anonymized'; public function init() { /** * Here you should handle subscribing to the events your plugin will handle */ $this->subscribe('beforeSurveySave'); } public function beforeSurveySave() { $model = $this->getEvent()->get('model'); $model->anonymized = 'Y'; } }
500: Interner Serverfehler
CDbCommand konnte das SQL-Statement nicht ausführen: SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value
protected $storage = 'DbStorage';