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
3 years 4 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 & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 3 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 : www.limesurvey.org/manual/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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose