Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: LimeSurvey Integration

LimeSurvey Integration 2 years 10 months ago #103104

  • dellys
  • dellys's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi,
I want to update another table when the user complete his survey , I did some search in lime survey and I have found this page
limesurvey\application\controllers\admin\dataentry.php
in this method insert I have added my one code to update my external table, but it does not work! nothing happen !! may be it is not the right page!? can you tell me the right page please?
Thanks
The administrator has disabled public write access.

LimeSurvey Integration 2 years 10 months ago #103107

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9552
  • Thank you received: 1370
  • Karma: 389
Hi,

No : it's only for admin data entry.

Best is to use
- with 2.05 : Plugin with afterSurveyComplete manual.limesurvey.org/Plugin_events
- With 2.00 or less : $.ajax
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

LimeSurvey Integration 2 years 10 months ago #103130

  • dellys
  • dellys's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi,
I'm using Version 2.00+ Build 131206 !, can you please tell me where can I find ajax file in which I can add my code to update my table?
Thanks
The administrator has disabled public write access.

LimeSurvey Integration 2 years 10 months ago #103131

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9552
  • Thank you received: 1370
  • Karma: 389
No file.

JS+PHP dev : api.jquery.com/jquery.ajax/
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

LimeSurvey Integration 2 years 10 months ago #103136

  • dellys
  • dellys's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
What I want to know is how can I use the function that update a survey when user click on "send" at the end of the survey ,as I have seen for each survey there is a table called `lime_tokens_XXXXXX` there is a field called "completed" it is "N "by default and when the user complete the survey this filed is updated with the date, so I want to know in which class or function or page this update is done ?
The administrator has disabled public write access.

LimeSurvey Integration 2 years 10 months ago #103137

  • dellys
  • dellys's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
here is an example ,when the user click on send ("Envoyer" in french)
what fucntion is called?

Last Edit: 2 years 10 months ago by dellys.
The administrator has disabled public write access.
Time to create page: 0.237 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form