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") 3 years 1 month ago #100436

  • Anurag01
  • Anurag01'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") 3 years 1 month ago #100461

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9551
  • Thank you received: 1370
  • Karma: 389
I'm not suer, but in multichoice it must be "subquestions" and not "answeroptions"
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.
The following user(s) said Thank You: Anurag01

Remote Control API 2: Getting answeroptions for multichoice questions (type "M") 3 years 1 month ago #100501

  • Anurag01
  • Anurag01'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") 1 year 3 weeks ago #128126

  • mascarpone
  • mascarpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 195
  • 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") 1 year 3 weeks ago #128128

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9551
  • Thank you received: 1370
  • Karma: 389
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 development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
Last Edit: 1 year 3 weeks ago by DenisChenu.
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V, mascarpone

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

  • mascarpone
  • mascarpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 195
  • Thank you received: 14
  • Karma: 3
That's it Denis, thanks much!
The administrator has disabled public write access.
Time to create page: 0.228 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form