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

More
4 years 3 weeks 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.
More
4 years 2 days ago #219210 by DenisChenu

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