Generating token attribute values on new public registrations

More
2 months 4 weeks ago - 2 months 4 weeks ago #170344 by AdrianB
AdrianB created the topic: Generating token attribute values on new public registrations
Hi all,

We have a project that involves a known list of potential project participants, with email addresses, and so a token-based survey is a good solution. The token table will have one additional attribute (attribute_1) - an external study ID - which will be pre-populated for the known set of participants. The external study IDs are of the form CS-0000001, CS-0000002, CS-0000003, and so on.

We would also like to have the option for public registration, so that additional people can participate. Limesurvey's "allow public registration" option will insert a token into the token table for these new registrants, but we would also like to insert a new external study ID into attribute_1 when the new token is created. The external study ID must be unique, and can simply be an increment of the last attribute value in the token table. The new registrant should not need to input the study ID him/herself at the time of registration.

Does anyone know if this is possible in Limesurvey? This capability will greatly simplify our project and remove the need for two different streams of data handling (those known up-front, and those participating via a wider registration approach).

Any advice would be greatly appreciated!

Thanks,
Adrian.
Last Edit: 2 months 4 weeks ago by AdrianB.

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #170353 by tpartner
tpartner replied the topic: Generating token attribute values on new public registrations
Can you not use the response ID?

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

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #170464 by AdrianB
AdrianB replied the topic: Generating token attribute values on new public registrations
Thanks, I wasn't aware of the {SAVEDID} attribute. We will give that a try!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!