Welcome, Guest
Username: Password: Remember me

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 4 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 4 months ago #100461

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
I'm not suer, but in multichoice it must be "subquestions" and not "answeroptions"
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 4 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") 3 months 2 days ago #128126

  • mas_carpone
  • mas_carpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 185
  • 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") 3 months 2 days ago #128128

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1117
  • Karma: 331
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
Last Edit: 3 months 2 days 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") 3 months 1 day ago #128171

  • mas_carpone
  • mas_carpone's Avatar
  • Offline
  • Gold Lime
  • Posts: 185
  • 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.352 seconds