Welcome to the LimeSurvey Community Forum

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

Is there a way to access the participant number from within a survey?

  • jma6610
  • jma6610's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #205053 by jma6610
I'm trying to do this as part of way to provide the participant number from within a text string that's displayed within a question as a way to provide the participant with a number that will permit them to redeem a participant incentive from elsewhere.

Thanks in advance.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205054 by Joffm
Hi,
if the survey is not set to "anonymous" you have access to the entries of the participant table.
I'm not sure if you may get the participant ID, but you may add an attribute to each participant which you display in your survey.

Or you use something like the {SAVEDID}. This is the sequential number of answers in the answer table.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205058 by holch
First of all, you need to define what you refer to as "participant number".

As Joffm said, is this the token? Is it the sequential number that Limesurvey is giving to each response? What do you call "participant number""?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • jma6610
  • jma6610's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #205060 by jma6610
It was intended to be the sequential number that Limesurvey is giving to each response. What Joffm suggested (placed within an equation question) seems to work.
Thanks
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205101 by holch

It was intended to be the sequential number that Limesurvey is giving to each response.


Yes, then Joffm's tip with {SAVEDID} is the way to go. That was easier than expected... ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose