Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Get Question Text via API for "multipleshorttext" Type

  • b3n4kh
  • b3n4kh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 10 months ago - 1 year 10 months ago #239171 by b3n4kh
Please help us help you and fill where relevant:
Your LimeSurvey version: [5.4.15]
Own server or LimeSurvey hosting: Own Server - Docker image [martialblog/limesurvey:latest]
Survey theme/template:
==================
I am querying the JSON RPC API for responses and questions.
The  list_questions  endpoint does not show Sub Question Texts if Question type is "multipleshorttext".
The only way to get those Texts was via  export_responses  if the "$sHeadingType" is set to "full". The response to this is unfortunately really hard to parse, since the "keys" in the json can be "anything" depending on the question text.

Is there an easier way?

Alternatively, is there a complete list of keys the response can include for all the HeadingTypes (full, abbrv code)?
Last edit: 1 year 10 months ago by b3n4kh.

Please Log in to join the conversation.

  • b3n4kh
  • b3n4kh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 10 months ago #239185 by b3n4kh
I just found that "get_question_properties" gives me these.

I still have a hard time, finding out what the excact answer keys for these requests are. It references: api.limesurvey.org/classes/Question.html but the properties listed there do not match at all.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose