Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to change the question text in plugin

  • sodiumchl
  • sodiumchl's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 7 months ago #218764 by sodiumchl
How can I change the question text through a plugin, and persist the change in the database?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #219210 by DenisChenu
Replied by DenisChenu on topic How to change the question text in plugin

How can I change the question text through a plugin, and persist the change in the database?
 
There are no dedicated way to do, nothing in «plugin API» system

Then you need to use Yii model directly

See www.yiiframework.com/doc/api/1.1/CActiveRecord and github.com/LimeSurvey/LimeSurvey/blob/ma...els/QuestionL10n.php

If you want to force value : manual.limesurvey.org/Plugin_events#Specific_Model_events : beforeQuestionL10nSave surely.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose