Dear LimeSurvey Team,I’m working on a project to programmatically manage questions in LimeSurvey (Community Edition v6.10.0) using the Remote Control API.
My goal is to:
Export individual questions as
Code:
.lsq
files.
Import questions into surveys using the
Code:
import_question
API method.
Challenges Encountered
Missing
Code:
export_question
API Method:
I searched the LimeSurvey codebase for
Code:
export_question
and could not find this function implemented.
The UI also does not seem to support exporting questions as
Code:
.lsq
. It only supports
Code:
.lss
and
Code:
.lsg
formats. Am I missing a feature, or is
Code:
.lsq
export unsupported?
.lsq File Format:
While
Code:
import_question
requires
Code:
.lsq
files, there’s no documentation on how to construct or obtain these files.
Can you provide:
A sample
Code:
.lsq
file?
Guidance on creating
Code:
.lsq
files manually, if needed?
Error Handling:
When importing questions or surveys, I occasionally encounter errors such as
Code:
500 Internal Server Error
. Are there recommended debugging steps or server logs to review in these cases?
Steps Already Taken
I’ve reviewed the official API documentation and searched the forums for similar issues.
I searched the codebase (
Code:
/helpers/remotecontrol/
and
Code:
/application/helpers/
) for
Code:
export_question
or related methods but found no implementation.
I tested the
Code:
import_question
API and verified its functionality with existing
Code:
.lsq
files but was unable to create
Code:
.lsq
files from LimeSurvey itself.
Questions
Is there a supported method to export individual questions as
Code:
.lsq
files?
If
Code:
.lsq
export is not supported, what is the recommended workflow for generating
Code:
.lsq
files?
Are there functional differences in Remote Control API capabilities between LimeSurvey CE and LimeSurvey Cloud?
Thank you for your time and assistance. Any guidance you can provide will be greatly appreciated.
Am I missing a feature, or is .lsq export unsupported?
LSQ export is definitely supported by the GUI. Everyday we receive LSQs from people who seek help, despite we always asking for LSS files. So it must be working.
One way to export LSQs: go to the question within the struture panel to the left, click on the three dots behind the question you want to export and choose "export".
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.