Welcome, Guest
Username: Password: Remember me

TOPIC: Show the participant's ID in the text field of a question?

Show the participant's ID in the text field of a question? 2 years 10 months ago #65655

  • KingKorn
  • KingKorn's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 26
  • Karma: 0
Hello everyone,

I'd like to show the internal ID of a participant in the text of a question (like showing previous answers with the INSERTANS-feature). Can this be done?

Thanks and best regards, kingkorn
The administrator has disabled public write access.

Re: Show the participant's ID in the text field of a question? 2 years 10 months ago #65681

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4072
  • Thank you received: 748
  • Karma: 341
What is an "internal ID"?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Show the participant's ID in the text field of a question? 2 years 10 months ago #65682

  • KingKorn
  • KingKorn's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 26
  • Karma: 0
I don't know, what it's called. THe unique ID the participant's data is saved under - like a response id or something? ;)
The administrator has disabled public write access.

Re: Show the participant's ID in the text field of a question? 2 years 10 months ago #65859

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5302
  • Thank you received: 291
  • Karma: 247
Do you mean the token which is used to restrict access to the survey or the data set ID for the current user's answers?

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: Show the participant's ID in the text field of a question? 2 years 10 months ago #65891

  • KingKorn
  • KingKorn's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 26
  • Karma: 0
the data set id for the current user's answers ;)
The administrator has disabled public write access.

Re: Show the participant's ID in the text field of a question? 2 years 10 months ago #65898

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4072
  • Thank you received: 748
  • Karma: 341
You should be able to use the {SAVEDID} placeholder.

{SAVEDID} will return the "Response ID" from the database providing:
- The survey is active
- At least one question page has been submitted
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Show the participant's ID in the text field of a question? 2 years 10 months ago #65909

  • KingKorn
  • KingKorn's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 26
  • Karma: 0
strange - i tried that in the admin-email as well as in a question text - and it didnt work (im using the newest release by the way)
The administrator has disabled public write access.

Re: Show the participant's ID in the text field of a question? 2 years 10 months ago #65921

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4072
  • Thank you received: 748
  • Karma: 341
I just tested and it works in question text for me. Is the survey activated?


Capture2_2011-09-21.PNG
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Show the participant's ID in the text field of a question? 2 years 10 months ago #65946

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5302
  • Thank you received: 291
  • Karma: 247
I'm not sure if the placeholder can be used at emails as well. You can try but keep in mind that this wil only work for the notification emails once the survey data was submitted.
At invitations/reminders you can't use that placeholder because the system won't know the ID up front.

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: Show the participant's ID in the text field of a question? 2 years 10 months ago #65953

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5302
  • Thank you received: 291
  • Karma: 247
I just tested and using {SAVEDID} at the notification emails works fine.

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.
Moderators: ITEd
Time to create page: 0.136 seconds
Donation Image