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

TOPIC: How are the answers stored after posting a form for a question group?

How are the answers stored after posting a form for a question group? 2 years 5 months ago #110401

  • ralovera
  • ralovera's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
I would like to know where in the code are the answers being saved into the database.
The administrator has disabled public write access.

How are the answers stored after posting a form for a question group? 2 years 5 months ago #110416

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9586
  • Thank you received: 1375
  • Karma: 390
Hi,

Prefix_answers
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.

How are the answers stored after posting a form for a question group? 2 years 5 months ago #110420

  • ralovera
  • ralovera's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi,

Do you mean {table prefix}_answers? I meant to ask what function is called to save the answers and what file and line is it at?

I checked out the SurveyController and the index action to see what it does with the information about the submitted form but I can't see what part in the code actually saves the answers.
Last Edit: 2 years 5 months ago by ralovera.
The administrator has disabled public write access.

How are the answers stored after posting a form for a question group? 2 years 5 months ago #110431

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9586
  • Thank you received: 1375
  • Karma: 390
It's in em_manager_helper.php :
private function _UpdateValuesInDatabase
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.
Time to create page: 0.822 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form