Adding responses for a survey via Remote Control 2 API

More
5 years 2 months ago #99861 by Anurag01
Anurag01 created the topic: Adding responses for a survey via Remote Control 2 API
A question as simple as it gets. Referring to Remote Control 2 API's add_response method -- What should be the correct structure of the parameter aResponseData?

I need to know this in two cases:
  • an open-ended survey
  • a non-anonymous (token-based) closed-survey

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #99886 by Anurag01
Anurag01 replied the topic: Adding responses for a survey via Remote Control 2 API
A gentle bump

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #99931 by Anurag01
Anurag01 replied the topic: Adding responses for a survey via Remote Control 2 API
Another gentle bump. I really need this guys :dry:

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #111288 by jj8931
jj8931 replied the topic: Adding responses for a survey via Remote Control 2 API
I think I need this too. I would like to prepopulate a single question on a tokenized survey with a project number so the person taking the survey will not have to do it.

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago - 4 years 4 months ago #111343 by tpartner
tpartner replied the topic: Adding responses for a survey via Remote Control 2 API

I would like to prepopulate a single question on a tokenized survey with a project number so the person taking the survey will not have to do it.

Why not use a token attribute for this?


.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 4 years 4 months ago by tpartner.

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #111347 by jj8931
jj8931 replied the topic: Adding responses for a survey via Remote Control 2 API
That is exactly what I have done.

I added an attribute and then used that attribute in the default of the field. Works fine.

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #164452 by Kabengwa
Kabengwa replied the topic: Adding responses for a survey via Remote Control 2 API
Did anyone find a solution to this? I think We now need to add examples to the documentation of Limesurvey ... because that array is still a mystery.

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago - 9 months 3 weeks ago #164485 by tpartner
tpartner replied the topic: Adding responses for a survey via Remote Control 2 API
No mystery - the array keys are the database column names for the questions or sub-questions and the array values are the answers.

If you had searched the forum for "$aResponseData" you would have found these posts:

- www.limesurvey.org/forum/installation-a-...-sent-via-rc2#163916
- www.limesurvey.org/forum/can-i-do-this-w...-add-response#162815

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 9 months 3 weeks ago by tpartner.

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #164493 by Kabengwa
Kabengwa replied the topic: Adding responses for a survey via Remote Control 2 API
I already had something close to this but with a certain issue... Link to question here

I think its an issue with the data or columns am inserting but i have double checked with no success. maybe u have seen it before and point me to the right direction.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!