Edit answer options via RPC

Mehr
3 Jahre 2 Tage her #143136 von dolfim
Edit answer options via RPC wurde erstellt von dolfim
Is it possible to set the answer options via the RPC interface?

I tried with the set_question_properties function (since the get_question_properties returns this data), but I only get "No valid Data". Looking at the code it looks like the answer options are in some other table which is accessed in set_question_properties.

Is there any other way to modify these settings programmatically?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
3 Jahre 2 Tage her #143145 von tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
3 Jahre 2 Tage her #143164 von dolfim
I actually want to change the text of the answer options (actually translate it).

Is update_response() supposed to do so?
It looks to me this function will modify the response of a participant, or?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
3 Jahre 1 Tag her #143172 von tpartner
No, it would be set_question_properties() . Note that this will modify the question for all future respondents.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
2 Jahre 9 Monate her #146631 von thomas12
Hi everyone,
I'm writing here because I have got the same problem and there was no obvious solution.

I tried to change a questiontext of a question with set_question_properties(). This worked perfectly as described.

I only got a problem when changing the answer options of a question. In this case set_question_properties() always returns "No valid Data".

This is my function call:

$answer = $this->client->set_question_properties(
$this->sessionkey,
$qid,
array(
'answeroptions' => array(
'1' => array(
'answer' => 'test test test'
)
)
),
'de'
);


Does anyone know where the problem lies?
I'm using Version 2.05+ Build 140502.

Best regards

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
2 Jahre 9 Monate her #146661 von DenisChenu

thomas12 schrieb: Does anyone know where the problem lies?
I'm using Version 2.05+ Build 140502.

Maybe an issue with this version ..... update to last 2.06 version and see what happen

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 .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
2 Jahre 9 Monate her #146956 von dillusion13
Has anyone figured this out?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha