Welcome to the LimeSurvey Community Forum

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

Trigger an action when a survey is completed.

  • waveydavey
  • waveydavey's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 3 months ago #223125 by waveydavey
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 3.15.5+181115
Own server or LimeSurvey hosting: Own Server
Theme:

==================
We would like our customer system to be notified when a survey is completed, by making a call to https://ourserver/api/surveyCompleted?survey=&token=
I assume I would need to change the code, which is fine if somebody could point me to the code that handles survey completion. 
It would also be useful, but not as urgent, if someone could point me to the code that handles saving a partially completed survey. 

I confess I am finding the framework and architecture quite difficult to grasp. 

Many thanks in advance,
David
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 3 months ago #223130 by Joffm
1. You may use the end-url.
2. Data of partially completed surveys are stored by default. (Only if the participant explicitly clicks the link to delete his data they are removed)

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 3 months ago #223132 by tpartner
Replied by tpartner on topic Trigger an action when a survey is completed.
You may be able to do it via an AJAX call in the end message. If the API is on a different server, that server would need to support JSONP.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • waveydavey
  • waveydavey's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 3 months ago #223140 by waveydavey
Replied by waveydavey on topic Trigger an action when a survey is completed.
Thanks, that may be useful.
Sorry about the double post - I think I realised I had started in a low volume area. Apologies.
The topic has been locked.
  • waveydavey
  • waveydavey's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 3 months ago #223141 by waveydavey
Replied by waveydavey on topic Trigger an action when a survey is completed.
Is there any way to force every survey to have the same end-url, to avoid the user having to set it up ?
e.g.

mydomain.com/survey_id=12345&token_id=23456
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 3 months ago #223185 by DenisChenu
Replied by DenisChenu on topic Trigger an action when a survey is completed.
No.
Except with plugin … like always

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 topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose