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

TOPIC: Can I give people an identifier for their answers?

Can I give people an identifier for their answers? 2 years 2 months ago #108771

  • tog22
  • tog22's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Can I give people an identifier for their answers? Ie. some string of letters from which you can pick out the answer row in the database. One example would be the date they started taking the survey. Another example would be a newly-generated string, perhaps generated by the Expression Manager, which then got saved to the database.

This could be presented in a late question (in the copying, using a LimeSurvey replacement field, or else in the default answer). Or it could be presented in the final page.
The administrator has disabled public write access.

Can I give people an identifier for their answers? 2 years 2 months ago #108775

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1790
  • Thank you received: 439
  • Karma: 110
Hi,
You can use {SAVEDID} keyword (already recorded in the db because it's the respondant unique ID for this survey)

You can try to retrieve in an equation question or just display at the last page some adaptation using other, prefix and/or suffix or other existing {keywords} or formula :

Some examples:

Prefix & suffix: ABC-{SAVEDID}-123
other keyword (survey id): {SID}-{SAVEDID}
Formula (date): {SAVEDID}-{date("d/m/Y")}

Related post => Generate Unique PIN for user

Ben
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.479 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form