- Posts: 43
- Thank you received: 0
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
- Topic Author
- Offline
- Senior Member
Less
More
3 years 7 months ago #205053
by jma6610
Is there a way to access the participant number from within a survey? was created 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.
Thanks in advance.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12942
- Thank you received: 3979
3 years 7 months ago #205054
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Is there a way to access the participant number from within a survey?
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
3 years 7 months ago #205058
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Is there a way to access the participant number from within a survey?
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""?
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 43
- Thank you received: 0
3 years 7 months ago #205060
by jma6610
Replied by jma6610 on topic Is there a way to access the participant number from within a survey?
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
Thanks
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
3 years 7 months ago #205101
by holch
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.
Replied by holch on topic Is there a way to access the participant number from within a survey?
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.