Welcome, Guest
Username: Password: Remember me

TOPIC: Recover the id answer in the source code

Recover the id answer in the source code 3 years 7 months ago #58909

  • Razor
  • Razor's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hello,

I'm using Limesurvey for a project and i would like to know where the ID of the answers is generated in the source code.
I ever looked for a SQL command like "INSERT INTO" but i did'nt find a such command in the .php files.

Thanks for the help.
The administrator has disabled public write access.

Re: Recover the id answer in the source code 3 years 7 months ago #58924

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6472
  • Thank you received: 855
  • Karma: 254
If you look at the datatable structure you see id is on AUTO_INCREMENT :)
The administrator has disabled public write access.

Re: Recover the id answer in the source code 3 years 7 months ago #59014

  • Razor
  • Razor's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Okay, so i can't get information about the id ?
My objectif is to associate this ID to a pseudo that i asked in a page which i created before.
The administrator has disabled public write access.

Re: Recover the id answer in the source code 3 years 7 months ago #59081

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5351
  • Thank you received: 299
  • Karma: 250
You can pass the ID of the current user by URL at the end of a survey. Limesurvey offers an end URL feature at the survey settings which can be used to forward the user to a customized script at the end of the survey and pass some data/IDs.
As for the answer set ID you can use ...&answerid={SAVEDID} at the end URL, see docs.limesurvey.org/Creating+a+new+surve...r+LimeSurvey#General

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Recover the id answer in the source code 3 years 6 months ago #59137

  • Razor
  • Razor's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
okay i will try it thanks a lot ! :)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.103 seconds
Donation Image