- Posts: 28
- Thank you received: 0
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
- Topic Author
- Offline
- Junior Member
Less
More
4 years 9 months ago #186068
by oledole
Add (sub)questions with Remote Control API was created 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
4 years 9 months ago #186081
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- 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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 28
- Thank you received: 0
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13645
- Thank you received: 2491
4 years 9 months ago #186119
by DenisChenu
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.
Replied by DenisChenu on topic Add (sub)questions with Remote Control API
I see only
create a new API function for this
.
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.