Check out the LimeSurvey source code on GitHub!

Can I give people an identifier for their answers?

More
2 years 8 months ago #108771 by tog22
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.

Please Log in to join the conversation.

More
2 years 8 months ago #108775 by Ben_V
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 => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form