Hi, I was wondering whether it is possible for limesurvey to generate a token using the participant's first and last name. I know by default that limesurvey would randomize a token, but i would like to customize this feature so that it would generate the token using a format that I specify.
Thanks for the suggestion.
This is actually useful for me when I am migrate some participant data to limesurvey or for bulk creation.
However, is it possible to do this without csv, since i don't want to create a csv file every time I want to add a new participant. I was hoping that limesurvey can generate the token based on my specification.
why do you want to add patricipants one by one?
csv import is thought to import bulk.
If you add participants one by one, then you can enter them directly into the system and give the password you like. (screenshot)
And now the sophisticated way:
Create a SQL statement and enter the participants into the token table.
Of course: If you have access to it.
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
I am designing so that my co-workers (who are not IT-literate) can you use. I am hoping I can design this so most of the activities can be done by them, rather than me.
Maybe some background info might help [strike]expand[/strike] explain what i am trying to accomplish.
I work for a health related agency. I am helping my company design an assessment tool for our clinicians to record the client's satisfaction regarding the outcome for each session. each client will attend 10 session, and by the end of each session, the clinicians would distribute a survey to record whether the session was productive to the client's needs. Right now, this process is complete through is paper form, but I hope to use limesurvey to digitize this.
The goal is to automatize the entire process so our clinicians would require minimal effort to distribute and collect survey, but still be able to get feedbacks from our clients.
I am not saying our clinicians cannot use csv to import data, but i am hoping for something that's less technical, and more "click add, type info, click finish" process.
Well, Joffm gave you already the solution. In the token administration, when creating a new token, you can choose your own token.
His screenshot is in German, but the second input field, where it says "Zugangsschlüssel" you can actually define the token that you want. If you leave it empty and let Limesurvey generate the token, or use your token.
However, keep in mind that firstname + lastname might NOT be unique, which could be problematic. I guess each patient has a patient number that should be unique and the physicians should know that ID, right? Better use that than constructs like firstname / lastname.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
My approach is a bit different, but might be helpful if you have some php/mysql background.
In one case (for beta), I created a simple index.php form that captures the user's name (and a few other fields). When they submit the form, the script creates a user (unique id in my database) and passes that to LimeSurvey via Panel Integration.
Something like https://.... &id=333&firstname=John&lastname=smith.
If you map the id, firstname and lastname to hidden questions, you can store that data in your LimeSurvey results. You can also use PASSTHRU in Panel Integration if you have an end url that processes the information.
Similar to teracomp's approach, you could create a simple PHP file where the clinician enters the name, etc and then use the
RemoteControl 2 API
to add the client to the token table, customize the token and email the client.