Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Remote Control API 2: Getting answeroptions for multichoice questions (type "M")

Remote Control API 2: Getting answeroptions for multichoice questions (type "M") 2 years 9 months ago #100436

  • Anurag
  • Anurag's Avatar
  • Offline
  • Junior Lime
  • Posts: 29
  • Karma: 0
I tried using the get_question_properties method to fetch the answeroptions, but that didn't work for multichoice questions, although the same method works for radio choice questions. Is there an alternate way to achieve the same?

Regards
The administrator has disabled public write access.

Remote Control API 2: Getting answeroptions for multichoice questions (type "M") 2 years 9 months ago #100461

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9293
  • Thank you received: 1327
  • Karma: 384
I'm not suer, but in multichoice it must be "subquestions" and not "answeroptions"
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: Anurag

Remote Control API 2: Getting answeroptions for multichoice questions (type "M") 2 years 9 months ago #100501

  • Anurag
  • Anurag's Avatar
  • Offline
  • Junior Lime
  • Posts: 29
  • Karma: 0
That worked! Thanks :)
The administrator has disabled public write access.

Remote Control API 2: Getting answeroptions for multichoice questions (type "M") 8 months 3 weeks ago #128126

  • mas_carpone
  • mas_carpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 187
  • Thank you received: 14
  • Karma: 3
A question related to question types and the API: can anybody help finding out whether the question types be fetched from the API and if so how?

Merci!
The administrator has disabled public write access.

Remote Control API 2: Getting answeroptions for multichoice questions (type "M") 8 months 3 weeks ago #128128

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9293
  • Thank you received: 1327
  • Karma: 384
Hi mas_carpone,

Seems to be 'type' with get_question_properties, but only the internal letter : the letter can be found in the question type selector. It's only for the parent question. The sub quetsion don't have really a question type if i remind.

We have to improve our documentation for dev .

Denis
PS: question type is here : github.com/LimeSurvey/LimeSurvey/blob/ma...ls/Question.php#L440
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
Last Edit: 8 months 3 weeks ago by DenisChenu.
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V, mas_carpone

Remote Control API 2: Getting answeroptions for multichoice questions (type "M") 8 months 3 weeks ago #128171

  • mas_carpone
  • mas_carpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 187
  • Thank you received: 14
  • Karma: 3
That's it Denis, thanks much!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.220 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form