Welcome to the LimeSurvey Community Forum

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

HELP WITH LIMESURVEY REPORT

  • boieman
  • boieman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 hours 20 minutes ago #270887 by boieman
HELP WITH LIMESURVEY REPORT was created by boieman
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
(Write here your question/remark)Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
(Write here your question/remark)Please help us help you and fill where relevant: ok
Your LimeSurvey version: 
Own server or LimeSurvey hosting: own server
Survey theme/template: default
==================I'm working on an integration between FusionPBX (FreeSWITCH) and LimeSurvey, and I need help finalizing the flow of capturing responses from a call into the LimeSurvey system.🔧 System Setup:
  • I’ve built a 4-step IVR chain in FusionPBX:
    1. IVR 1 (1002): Collects Q1 (satisfaction)
    2. IVR 2 (1003): Collects Q2 (agent knowledge)
    3. IVR 3 (1004): Collects Q3 (overall service)
    4. IVR 4 (1005): Plays a thank-you message, then transfers to 1006
  • At extension 1006, I run a
    Code:
    survey.lua
    script which:
    • Reads the 3 answers saved as session variables (
      Code:
      answer1
      ,
      Code:
      answer2
      ,
      Code:
      answer3
      )
    • Sends them via a
      Code:
      curl
      POST to the LimeSurvey RemoteControl 2 API using
      Code:
      add_response
✅ What works:
  • The
    Code:
    curl
    POST from SSH manually works — it returns
    Code:
    "result": "OK"
  • LimeSurvey accepts the submission — it shows a new response row
❌ What’s not working:
  • The answers submitted via the API are not showing up in the response data in LimeSurvey — the fields are blank.
  • I've tried using
    Code:
    Q001
    ,
    Code:
    Q002
    ,
    Code:
    Q003
    as question codes in
    Code:
    aResponseData
    , but the answers still aren't appearing.
 What I need help with:
  • How can I verify the correct question codes to use in
    Code:
    aResponseData
    ?
  • Is there a recommended way to confirm what LimeSurvey is expecting when posting via the API?
  • Could this be an issue with how the questions are configured (e.g., hidden/mandatory/grouped)?
Any guidance or example of a properly structured
Code:
add_response
JSON that works for LimeSurvey v5/v6 would be hugely appreciated.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 hours 30 minutes ago #270892 by tpartner
Replied by tpartner on topic HELP WITH LIMESURVEY REPORT
When using the add_response method, you must use the SGQ as an identifier, not the question code.

- forums.limesurvey.org/forum/can-i-do-thi...-add-response#162815

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose