Welcome to the LimeSurvey Community Forum

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

Clarification on .lsq Support and Remote Control API Functionality in LimeSurvey

  • RStromsted
  • RStromsted's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
19 hours 13 minutes ago #268713 by RStromsted
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:
  1. Export individual questions as
    Code:
    .lsq
    files.
  2. Import questions into surveys using the
    Code:
    import_question
    API method.
Challenges Encountered
  1. 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?
  2. .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?
  3. 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
  1. I’ve reviewed the official API documentation and searched the forums for similar issues.
  2. I searched the codebase (
    Code:
    /helpers/remotecontrol/
    and
    Code:
    /application/helpers/
    ) for
    Code:
    export_question
    or related methods but found no implementation.
  3. 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
  1. Is there a supported method to export individual questions as
    Code:
    .lsq
    files?
  2. If
    Code:
    .lsq
    export is not supported, what is the recommended workflow for generating
    Code:
    .lsq
    files?
  3. 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.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
15 hours 54 minutes ago - 15 hours 54 minutes ago #268719 by holch

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.
Last edit: 15 hours 54 minutes ago by holch.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose