Welcome to the LimeSurvey Community Forum

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

Add (sub)questions with Remote Control API

  • oledole
  • oledole's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 9 months ago #186068 by oledole
Some documentation of the remotecontrol API: api.limesurvey.org/classes/remotecontrol_handle.html

Hi.

I was wondering if there was any way to use API to add a question (and subquestion) to a survey in Limesurvey? Is there an API endpoint for this? Or another way to do it?

Thank for the assistance.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #186081 by tpartner
Replied by tpartner on topic Add (sub)questions with Remote Control API
As far as I know, you can import a complete question but not sub-questions.

- api.limesurvey.org/classes/remotecontrol...thod_import_question

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: oledole
The topic has been locked.
  • oledole
  • oledole's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 9 months ago #186117 by oledole
Replied by oledole on topic Add (sub)questions with Remote Control API
I see. Thank you.

Is there any alternative method to add subquestions to a question without manually going to the survey on limesurvey and adding them? I want my question to have X number of subquestion depending on some input. What would be the best option to achieve this? All I could think of is editting the XML of the lsq file of the question or adding one question for each option instead of having subquestions... but both options aren't ideal.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #186119 by DenisChenu
Replied by DenisChenu on topic Add (sub)questions with Remote Control API

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 .
I don't answer to private message.
The following user(s) said Thank You: oledole
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose