Actions

Survey participants: Difference between revisions

From LimeSurvey Manual

m (Removed incorrect fact)
 
(168 intermediate revisions by 10 users not shown)
Line 3: Line 3:
__TOC__
__TOC__


<!--T:2-->
=Introduction= <!--T:3-->
<div class="simplebox">'''Note''':  Tokens have changed alot in Version 1.85 and later. So if you are using an earlier version there will be differences between your version and the documentation. We recommend to upgrade as soon as possible.</div>


=Introduction= <!--T:3-->


<!--T:4-->
<!--T:4-->
On many occasions you will want to invite a group of people to participate in your survey, keep track of who has completed the survey, and ensure that each person can only participate once. The tokens feature allows you to do the following:
The Survey Participants  functionality allows you to invite a group of people to participate in your survey, keep track of who has completed the survey, and ensure that each person can only participate once. The survey participants table feature allows you to do the following:
*Import a list of names and email addresses for participants (from a CSV file or an LDAP query)
*Import a list of names and email addresses for participants from a [[Survey_participants#Import participants from a CSV file|CSV]] file or a [[Survey_participants#Import participants from an LDAP query|LDAP query]];
*Generate a unique token number for each participant (invitation code)
*Generate a unique token code for each participant (invitation code);
*Send an email invitation to each person in your list, by group or individually
*Send an email invitation to each person on your list (by group or individually);
*Send a reminder email to each person in your list who has not yet responded, by group or individually
*Send a reminder email to each person on your list who has not yet responded (by group or individually);
*Track who from your list has responded
*Track who has responded from your survey participants list;
*Restrict access against people who have not got a token, and those with a token who have already responded
*Restrict access for people who have not received a token, and those with a token who have already responded;
*Edit/change any details in your list
*Edit/change any details in your list;
*Create email templates for invitations & reminders
*Create email templates for invitations & reminders.


<!--T:5-->
<!--T:5-->
Once the survey is switched to Closed-access mode (you have enabled tokens for this survey), then '''only the people with a valid token code (not already used) can access the survey'''.
Once the survey is switched to ''Closed-access'' mode '''only the people that provide a unique token code (that has not been already used) can access the survey'''. (You need to create a survey participants table first for the respective survey).


<!--T:6-->
<!--T:6-->
If you enable ''Auto-registration'' in the survey properties, participants will be able to register for your survey to have their personal token code automatically generated.
If you enable the [[Participant settings|Allow public registration]] option from the '''Survey participants table''' panel, the survey participants will be able to register for your survey by receiving an automatically generated token code.


<!--T:130-->
<!--T:130-->
{{Hint|Text=Some token settings are set in survey settings, see [[Creating a new survey#Tokens]]}}
{{Note|Some tokens-related settings are stored in the [[Participant settings|participant settings]] panel.}}
 
=How to create a survey participants table= <!--T:133-->
 
 
<!--T:134-->
to ''initialize'' a survey participants table: '''Settings''' > '''Survey menu''' > '''Survey participants''':
 
 
<!--T:247-->
<center>[[File:Survey_participants_settings_tab.png]]</center>
 
 
<!--T:248-->
The following message will be displayed:
 
 
<!--T:135-->
<center>[[File:Switch-to-closed-access-mode-2.png]]</center>
 
 
<!--T:136-->
If you ''initialize a participant table'', the survey will be accessible only to those participants who provide a token code in the registration process (either manually or by URL).  This way, the survey will be switched to closed-access mode.
 
<!--T:137-->
Once initialized, a window will be displayed confirming the creation of the survey participants table.
 
 
==Reactivate a survey participants table== <!--T:138-->
 
 
<!--T:139-->
When you delete a survey participants table, a backup is created. It can later be reactivated if you wish to use that specific survey participants table in another survey.
 
 
<!--T:140-->
<center>[[File:Restore old token tables.png]]</center>
 
=The survey participants table management tools= <!--T:11-->
 
 
<!--T:141-->
A ''survey participant summary'' will be displayed if the survey participants table was previously created. This is the default screen:
 
 
<!--T:142-->
<center>[[File:Survey participant summary.png]]</center>


==Can a survey using tokens ensure anonymous responses?== <!--T:7-->


<!--T:8-->
<!--T:143-->
The answer to this question is '''Yes'''. Tokens can be used both for anonymous and non-anonymous surveys. This is determined when creating a survey. If a survey is not anonymous (or 'tracked') then the token list can be used to find the responses that an individual has made to the survey. If the survey is anonymous, then no link (technically: foreign key relationship) is available between the tokens table and the responses.
*'''Total records:''' The number of survey participants from the survey participants table;
*'''Total with no unique token:''' Displays the number of users without an assigned token code;
*'''Total invitations sent:''' Shows the number of invitations that have been sent to your survey participants from the '''Survey participants''' table by using the Invitations option from the [[Survey participants#Invitations & reminders|Invitations & reminders]] menu;
*'''Total opted out:''' Displays the total number of survey participants that have decided [[Email_templates#Participant opt-out|to opt out]] from the survey;
*'''Total screened out:'''  Used to screen and exclude potential participants who do not match certain criteria.
*'''Total surveys completed:''' Shows the number of the surveys that have been completed by those users who have been allocated a token code.  


=How to activate tokens?= <!--T:9-->


<!--T:10-->
<!--T:144-->
There are two ways to activate tokens:
Above the '''Survey participant summary''' table, you will find the '''survey participants table management tools''':
#After survey activation you will be asked if you want to activate tokens: [[File:Switch-to-closed-access-mode.png]]
# '''OR '''you can click on the tokens symbol [[File:tokens.png]] - even before the survey is activated.


=The token management tools= <!--T:11-->


<!--T:12-->
<!--T:12-->
[[File:token-menu2.png]]
<center>[[File:token-menu2.png]]</center>
 
 
<!--T:145-->
*[[Survey participants#Display participants|Display participants]]: Displays a survey participants table with all the current participants. From the browse screen you can edit or delete individual entries from the table as well as perform a number of other useful functions (see the [[Survey participants#Display participants|Display participants wiki]] section below for more details);
*[[Survey participants#Create...|Create...]]: Allows the survey administrator to add respondents into the survey participants table either via the '''Add participant''' option or via the '''Import participants''' function;
*[[Survey participants#Manage attributes|Manage attributes]]: Allows the survey administrator to add additional fields to the survey participants table to store custom participant data;
*[[Survey participants#Export|Export]]: To export the token tables and use them in other surveys, use this function. The file will be saved in the .CSV format;
*[[Survey participants#Invitations & reminders|Survey participants]]: Allows you to invite or remind your participants from the survey participants table to fill out your online survey;
*[[Survey participants#Generate tokens|Generate tokens]]: Allows the survey administrator to quickly allocate a random unique token code to each user from the survey participants table that does not have one;
*[[Survey participants#View in CPDB|View in CPDB]]: Provides quick access to your LimeSurvey installation [[Central Participant Database|central participant database]] (CPDB). From there you can allocate CPDB users as survey participants to any survey.
 
 
==Display participants== <!--T:146-->
 
 
<!--T:29-->
Shows the entries list from the survey participants table and allows the user to:
*[[Survey participants#Sort the survey participants|sort the survey participants]];
*[[Survey participants#Filter the survey participants|filter the survey participants]];
*[[Survey participants#Perform certain actions to an individual entry|perform certain actions to an individual entry]];
*[[Survey participants#Perform a specific action to more than one entry|perform certain actions to more than one entry]].
 
 
<!--T:147-->
<center>[[File:token-actions.png]]</center>
 
 
===Sort survey participants=== <!--T:148-->
 
 
<!--T:31-->
The second row of the table includes various criteria that can help the survey administrator sort the entries. If you click on any of the columns/criteria from the table, the screen will be refreshed, showing the survey participants ordered in accordance to the criterion you just clicked on. Click twice on it to get the results displayed in a descending order.
 
 
<!--T:149-->
<center>[[File:Display participants - sort.png]]</center>
 
 
===Filter survey participants=== <!--T:150-->
 
 
<!--T:151-->
To filter survey participants, choose the column that you want to filter.  Then type in the values/strings that you want to filter on in the empty box below the desired column.


<!--T:13-->
After creating the tokens table you can click on the tokens icon to get to the token administration. The following is a brief rundown of the menu options in the tokens screen:
*'''Admin''': Returns to the main survey admin screen
*'''Summary''': Displays just the brief summary of tokens in the table (number of tokens, how many have been sent an invitation, and how many have responded). Also provides access to the Database Admin functions (see below). This is the default screen.
*'''Browse''': Displays the complete list of participants in the tokens table. From the browse screen you can edit or delete individual entries in the token table as well as perform a number of other useful functions (see browse section below)
*'''Add new token entry''': Allows you to add an entry to the tokens table
*'''Add dummy token''': Allows you to add 1 or more tokens to the token table
*'''Manage additional field attributes''': Allows you to add additional fields to the tokens table to store custom participant data
*'''Import from CSV''': Allows you to import information from a csv file
*'''Import from LDAP''': Allows you to import information from an LDAP query (tested on openLdap but should work in any LDAP compliant directory including ActiveDirectory)
*'''Export tokens to CSV file''': creates a standard CSV (comma delimited) file with a complete list of participants of your current tokens table
*'''Edit [[Email templates|email templates]]''': Used to customize the templates used for the invitations, reminders, confirmations, and registration emails
*'''Send email invitation''': Sends bulk email invitations to all participants in the tokens table who have not already been sent an invitation.
*'''Send email reminder''': Sends bulk email reminders to all participants in the tokens table who have not yet responded, but have been sent their first invitation.
*'''Generate tokens''': Creates unique tokens for all individual entries in the tokens table that do not yet have one
*'''Drop token table''': delete the token table and set the survey to Open-access mode.
*'''Bounce settings''':  Email bounce back settings.   Bounce back settings can be set at the survey level or at the system level.    This feature was added in version 1.91


=Editing/adding a token= <!--T:14-->
<!--T:152-->
<center>[[File:Display participants - filter.png]]</center>
 
 
<!--T:153-->
For example, type "OK" in the email status field to return only those participants that have a valid email address.
 
<!--T:154-->
<div class="simplebox">[[File:help.png]] '''Hint:''' You can also use operators when filtering the survey participants (e.g.,: >, <, >=, <=, = ). </div>
 
<!--T:249-->
{{Alert|title=Attention|text=To filter "invitation sent", "reminder sent", and "survey completed" columns, use "=N" or "<>N", meaning "equal No" and "not equal No", respectively.}}
 
===Perform a specific action to an individual entry=== <!--T:155-->
 
 
<!--T:156-->
The '''Action''' column is where you can find all the actions that are available for each individual entry from the survey participants table. The possible actions that can be performed are:
 
 
<!--T:157-->
<center>[[File:Display participants - participant action.png]]</center>
 
 
<!--T:33-->
*'''View response details:''' If the survey is a "tracked" (i.e., not anonymous) survey, another button will appear, allowing you to view the response from this individual entry;
*'''Launch the survey with this token:''' Used to execute a survey by using the generated token code;
*'''Send email invitation:''' Use this option to send an email invitation to the respective participant to complete the survey;
*'''Edit the survey participant:''' Click to change survey participant data;
*'''Delete survey participant:''' Click to delete that particular entry;
*'''View this person in the central participant database''': An icon will be displayed if the respective entry can also be found in the central participant database.
 
===Perform a specific action to more than one entry=== <!--T:158-->
 
 
<!--T:159-->
On the bottom-left part of the table, you will find the '''Selected participant(s)...''' button that allows you to perform certain actions at a macro level:
 
 
<!--T:160-->
<center>[[File:Display participants - participants actions.png]]</center>
 
 
<!--T:161-->
*'''Send email invitations:''' Send email invitations to the selected survey participants;
*'''Send email reminder:''' Send email reminders to the selected survey participants;
*'''Add participants to central database:''' To use some of the token entries in another survey, add the selected participants to the [[Central Participant Database|central participant database]]. From there, you have the option to add the participants to any survey you wish. For more details, continue reading the [[Central_Participant_Database#Share_this_participant|Share this participant]] wiki page.
 
 
<!--T:162-->
{{Box|Before executing any of the functions mentioned above, do not forget to select the survey participants upon which the action will be performed.}}
 
==Create...== <!--T:163-->
 
 
<!--T:164-->
To have more participants listed in the survey participants table, you can add new ones or import them from a CSV file or LDAP query.
 
 
<!--T:165-->
<center>[[File:Survey participants - Create....png]]</center>
 
 
===Add participant=== <!--T:166-->
 


<!--T:15-->
<!--T:15-->
A typical token entry contains the following fields:
A typical token entry contains the following fields:
<!--T:167-->
<center>[[File:token_editing2.png]]</center>
<!--T:168-->
*'''ID:''' An integer that is automatically assigned to each survey participant;
*'''Completed?''': Disabled by default. If enabled, it would contain the date when the survey was completed. No invitations or reminders are sent to the respective users if this is enabled. It is automatically enabled if the respective survey participant completed the survey using his or her assigned token code;
*'''First name:''' The first name of the survey participant;
*'''Last name:''' The last name of the survey participant;
*'''Token:''' This is the invitation code. It can be manually or automatically generated (via the '''Generate tokens''' button);
*'''Language:''' Here you can select the default language of the survey for the respective participant;
*'''Email:''' The email address of the participant;
*'''Email status:''' This field helps you track invalid email addresses. For instance, if the survey administrator received email error notifications from this email, then they can set this field to anything other than "OK" (for instance "user unknown" or "mailbox quota exceeded"). Marking this field with an email status other than "OK" will help skip this entry when sending invitation or reminder emails. Note that this is completely manual, unless you decide to implement a script which updates this field automatically;
*'''Invitation sent?:''' If enabled, contains the date when the invitation email was sent;
*'''Reminder sent?:''' If enabled, contains the date when the reminder email was sent;
*'''Uses left:''' Counts the number of times the token can be used. ''Note:'' When increasing this value (default = 1) for a user who has already filled out the survey (which sets uses left to 0), you also have to switch the '''Completed''' field from "Yes" to "No";
*'''Valid from:''' & '''Until:'''You can set a date/time range for when this token can be used. You can leave these empty if you don't want to limit the participation time frame for certain users. If the user is answering the survey and the participation time ends, then the user is locked out immediately and won't be able to finish the survey.


<!--T:16-->
<!--T:16-->
<center>[[File:token_editing2.png]]</center>
Note that the '''Add survey participant''' panel has two tabs: the '''General tab''' and the '''Additional attributes''' tab. The additional attributes tab offers you access to your custom attributes - read the following [[Survey participants#Manage attributes|wiki section]] for more details.
*'''First and last name''': .. of the participant (can be used in the emails & survey)
*'''Email''': the participant's email address
*'''Email status''': a field to keep track of bad emails. For instance, if the survey administrator received email error notifications from this email, the he can set this field to anything other than 'OK' (for instance 'user unknown', or 'mailbox quota exceeded'). Marking this token with an email status other than 'OK', will help skip this entry when sending invitation or reminder emails. Note that this is completely manual, unless you decide to implement a script which does update this field automatically.
*'''Token''': this is the invitation code. It is usually automatically generated by the 'Generate tokens' button
*'''Language''': if you want to set the default language for this participant
*'''Invite sent''': defaults to 'N', otherwise would contain the date when the invitation email was sent
*'''Reminder sent''': defaults to 'N', otherwise would contain the date when the reminder email was sent
*'''Completed''': defaults to 'N', otherwise would contain the date when the survey was submitted for not anonymous survey, or 'Y' for anonymous survey
*'''Uses left''': A counter of number of times the token can be used. ''Note:'' When increasing this value (default = 1) for a user who has already filled out the survey (which sets uses left to 0), you have to add "N" at the "completed" field.
*'''Valid from''' & '''Valid until''' : You can set a date/time range where this token would be allowed to use. You can leave these empty if you don't want to limit participation time frame for certain users. Note: If the user is answering the survey and the participation time ends then the user is locked out immediately and won't be able to finish the survey.
*'''Attribute1 to Attribute x''': These are user-definable attribute fields - see the next paragraph.


=Dummy Tokens= <!--T:17-->


<!--T:18-->
===Create dummy participants=== <!--T:169-->
Dummy Tokens were added in 1.91. Here is a typical screen:


<!--T:19-->
<center>[[File:dummyToken.png]]</center>
*'''Number of tokens''':  Number of tokens to be added.  Default is 100.
*'''Token length''': Number of characters or length of token.  Default 15
*'''First and last name''': .. of the participant.
*'''Email''': the participant's email address
*'''Language''': If you want to set the default language for this participant
*'''Uses left''': A counter of number of times the token can be used.
*'''Valid from''' & '''Valid until''' : You can set a date/time range where this token would be allowed to use. You can leave these empty if you don't want to limit participation time frame for certain users. Note: If the user is answering the survey and the participation time ends then the user is locked out immediately and won't be able to finish the survey.
*'''Attribute1 to Attribute x''': These are user-definable attribute fields - see the next paragraph.


<!--T:20-->
<!--T:170-->
Note that Name, email, language will be set to the same value for all dummy Tokens
A dummy participant can be used when you do not want to send tokens by email to survey participants, but give them token codes by other means. For example, students doing class evaluations could be given a paper with an invitation code to be entered at the beginning of the online survey.  This way, the likelihood of receiving more responses and feedback increases.


=Bounce Settings= <!--T:21-->
<!--T:171-->
Click '''''Create dummy participants''''' and the following page will be displayed:


<!--T:22-->
Email bounce back processing was added in 1.91. Additional information is available at [[Email bounce tracking system]]


<!--T:23-->
[[File:surveyBounseSettings.png]]
*'''Survey bounce email''':  A valid email address for return mail.   For faster bounce back processing, this email box should be limited to bounce back only.
*'''Bounce settings to be used''': There are three options:  1- None (default) - no bounce back processing, 2- Use settings below - Will set bounce back processing at the survey level, or 3- Use global settings -- Settings based on the system level.
*'''Server type''': Three options: 1- Off, 2- IMAP or 3- POP
*'''Server name & port''':  Host name and port number.   Port number isn't typically needed unless the email host uses a non-standard port. Example:  mail.example.net:25 or imap.gmail.com:995
*'''User name''':  User Name or User ID of the email account
*'''Password''':  password of the email account
*'''Encryption type''':  Three options:  1- None (default), 2- SSL, or 3- TLS


=User-defined attribute fields= <!--T:24-->
<!--T:172-->
<center>[[File:Survey participants - create a dummy participant.png]]</center>


<!--T:25-->
It is possible to add a number of additional fields to the tokens table to save additional data for a participant. By clicking on the [[File:token_manage.png]] icon you can manage these fields. You can add more attribute fields (by default they have a a length of 255 chars) and also set descriptions for each field - so they look nicer in the administration, when you browse tokens, when creating [[Setting conditions|conditions]] based on attribute fields or even when you export results for non-anonymous surveys.


<!--T:26-->
<!--T:173-->
Detailed instructions on how to add additional attribute fields and use conditions based on these values can be found at this blog post: "[http://www.limesurvey-consulting.com/limesurvey-conditions-based-on-token-attributes/ Conditions based on token attributes]"
The ''Number of participants'' field allows you to enter the number of dummy participants you want to add to your survey participants table. The explanation of the other fields can be found in the [[Survey participants#Add participant|Add participant]] wiki subsection.


=Using the browse screen and editing tokens= <!--T:27-->
<!--T:174-->
After completing the fields, press '''Save''' located in the upper-right part of the screen.


<!--T:28-->
[[File:token-browse.png]]


<!--T:29-->
<!--T:175-->
The browse screen will show you a list of all entries in the tokens table, as well as giving you some 'action' buttons that can perform specific tasks for that individual entry.
To check whether they were added or not, check the Survey participants table:


<!--T:30-->
The top row of the table has three columns: The dialogue on the right gives options for displaying a number of records, and a starting point. In the middle is a search bar and the symbols on the left let you move backwards or forwards through your list.


<!--T:31-->
<!--T:176-->
The second row of the table (see image below) includes various criteria to sort the entries and for each a green arrow that - if clicked - will refresh the screen showing the tokens ordered by that criterion.
<center>[[File:Dummy variables - simple example.png]]</center>


<!--T:32-->
===Import participants from a CSV file=== <!--T:177-->
The "Actions" column gives a list of specific tasks that can be performed on that individual entry:


<!--T:33-->
[[File:token-actions.png]]
*Do the survey using the unique token of this entry
*Edit this entry
*Delete this entry
*Send a invitation/reminder to this individual entry
*If the survey is a 'tracked' (ie: not anonymous) survey, another button will appear, allowing you to view the response from this individual entry.


=Database Admin= <!--T:34-->
<!--T:178-->
The import function allows you to import information from a [[Survey participants#Import participants from a CSV file|CSV file]] or [[Survey participants#Import participants from a LDAP query|LDAP query]].


<!--T:35-->
[[File:token-summary.png]][[File:token-db-mgt.png]]


<!--T:36-->
<!--T:40-->
While the summary screen shows a brief summary of tokens in the table, it also provides access to the "Database Admin" features which include:
<center>[[File:survey participants - import csv.png]]</center>
*Clear invites: Sets all records that an invitation has been sent out to 'N'. Obviously shouldn't normally be used.
*Clear tokens: Clears all tokens. Similarly shouldn't normally be used.
*Drop tokens: Allows you to remove the tokens feature from your script. Deletes the entire table and all records, and allows the survey to be accessed by anybody who knows the URL.


= Importing/exporting tokens= <!--T:37-->


== CSV import== <!--T:38-->
<!--T:179-->
*'''Choose the CSV file to upload:''' Pick the CSV file you wish to import. To eliminate any possible errors, we recommend that you import a standard CSV (comma delimited) file with optional double quotes around values (default for OpenOffice and Excel).


<!--T:39-->
<!--T:180-->
When you click the icon to import tokens you will be presented with the following screen:
'''The first line must contain the field names'''. It <u>must</u> also contain the following fields: ''firstname, lastname, email''.


<!--T:40-->
<!--T:181-->
[[File:uploadtoken.jpg]]
They have to contain at least one character. Simply adding double quotes and no characters between them will not work!


<!--T:41-->
<!--T:182-->
Your CSV file must be a standard [http://en.wikipedia.org/wiki/Comma-separated_values CSV (Comma Separated Value) file]. The first line of text is always the header information and will be used to identify the field data. Possible data fields are:
The other fields are optional: ''emailstatus, token, language, validfrom, validuntil, attribute_1, attribute_2, attribute_3, usesleft, ... .''


<!--T:42-->
    firstname,lastname,email,emailstatus,token,language code,tid,attribute_1,attribute_2, attribute_...


<!--T:43-->
<!--T:43-->
To obtain a full list of token field names, export an existing token table.
{{Hint|Text=To obtain a full list of token field names, [[Survey participants#Export|export an existing survey participants table]].}}
 
<!--T:50-->
{{Hint|Text=The date format for the "validfrom" and "validuntil" fields in the CSV token inport file is "YYYY-MM-DD HH:MM".}}
 
<!--T:183-->
*'''Character set of the file:''' Select the option that fits the characters used in the CSV file;
*'''Separator used:''' You can let LimeSurvey automatically discover the used separator in your CSV or select either the ''comma'' separator or the ''semicolon'' one;
*'''Filter blank email addresses:''' If enabled, the survey participants without an email address will not be imported into your survey participants table;
*'''Allow invalid email addresses:''' If disabled, this function will look into the email addresses fields and check whether the addresses have the structure of an email or not (e.g.: a@a.net);
*'''Display attribute warnings:''' If enabled, after the importing process warnings will be displayed in case there is something wrong with the fields. For example. you might get an attribute warning if nothing is provided in any of the mandatory fields or if an email is incorrectly introduced in the CSV file.
 
<!--T:54-->
*'''Filter duplicate records:''' If enabled, you can set which fields are used to identify duplicates. By default First name, Last name & Email-address are preselected. If a duplicate is found while importing, the related line is omitted.


<!--T:44-->
<!--T:184-->
The fields can be in any order but ''firstname, lastname and email are mandatory'', and they must contain at least one character. Empty data (such as "") is not sufficient. If you would like to import data for attribute fields, you must add the desired attribute fields to the token table prior to importing token data.
*'''Duplicates are determined by:''' Select the fields that you want to filter on for duplicates.


<!--T:45-->
A bare minimum CSV file could look like this:


<!--T:47-->
<!--T:128-->
    firstname,lastname,email
You can also import customized attributes when importing a CSV file. You will have to define what attributes will be added. You can do it like this:
    John,Doe,john@doe.net


<!--T:49-->
'''Date format for token import'''


<!--T:50-->
    <!--T:251-->
The date format for the "validfrom" and "validuntil" fields in the CSV token inport file is "YYYY-MM-DD HH:MM", e.g.:
<code>email,attribute_1 <Casenr>, token, attribute_2 <Title>, attribute_3 <destination>, lastname,firstname,attribute_4 <Sender></code>


<!--T:51-->
    2012-01-01 00:00


<!--T:52-->
<!--T:185-->
--would correspond to 1st January, 2012, at 12:00 AM.
Once you are done choosing the desired importing settings, do not forget to click on the '''Upload''' button.


<!--T:53-->
'''Filtering duplicates'''


<!--T:54-->
====Troubleshooting the import of survey participants==== <!--T:55-->
If you activate the option to filter for duplicates you can set which fields are used to identify duplicates. By default First name, Last name & Email-address are pre-selected. If a duplicate is found while importing the related line is omitted.


<!--T:55-->
'''Troubleshooting the token import'''


<!--T:56-->
<!--T:56-->
A common error when users try to import tokens is an invalid CSV file. This is often caused by Microsoft Excel. Many users have a list of e-mail addresses saved as an XLS document. A file can be saved as CSV in Excel, however, Microsoft uses semi-colon (;) as the comma separator, while a standard CSV file uses comma (,) as the separator. If you try to import an Excel saved CSV file you will get an error message. A simple solution is to save your XLS document as a CSV file in Excel and then open the file in a raw text editor and replace all semi-colon characters with commas. In version 2.00 can  you select the used separator.  
A common error when users try to import tokens is an invalid CSV file. This is often caused by Microsoft Excel. Many users have a list of email addresses saved as an XLS document. A file can be saved as CSV in Excel.  However, depending on the locale of the OS, Microsoft Excel may use semi-colons (;) as comma separator, while a standard CSV file uses commas (,) as separators. If you do not know which one you use, open the file with a standard text editor and verify which separator was used.  


<!--T:57-->
<!--T:57-->
Recommended free raw text editors are: [http://www.pspad.com/ PSPad], [http://www.flos-freeware.ch/notepad2.html NotePad2] or [http://notepad-plus-plus.org/ Notepad++] for Windows, and [http://www.barebones.com/products/textwrangler/ TextWrangler] for Macintosh.
Recommended free raw text editors are: [http://www.pspad.com/ PSPad], [http://www.flos-freeware.ch/notepad2.html NotePad2] or [http://notepad-plus-plus.org/ Notepad++] for Windows, and [http://www.barebones.com/products/textwrangler/ TextWrangler] for Macintosh.


<!--T:58-->
You can use [http://www.libreoffice.org/features/calc/ LibreOffice Calc] to export import your xls file and export your csv file.


<!--T:128-->
<!--T:186-->
'''Add additional attributes at import'''
{{Box|LimeSurvey should also detect semicolons as separators. However, in case the import process is not properly working, replace the semicolons with commas. Double quotes should also be added around values.}}
It is also possible to add new custom attributes when import a CSV file. It is still needed to define what attributes will be added. The way to do this is:
 
    firstname,lastname,email
===Import participants from a LDAP query=== <!--T:187-->
    attribute_1 <Casenr>; token; attribute_2 <Title>; attribute_3 <destination>; lastname; firstname; attribute_4 <Sender>;
 
<!--T:188-->
{{Alert|title=Attention|text=This option is recommended only to those users with advanced knowledge in LDAP queries.}}
 
<!--T:189-->
This import function allows you to import information from a LDAP query (tested on openLdap, but should work in any LDAP compliant directory including ActiveDirectory). The following options are available on the ''Import survey participants from LDAP'' page:
 
 
<!--T:190-->
<center>[[File:Import survey participants from LDAP.png]]</center>
 
<!--T:68-->
* Queries are manually defined by the system administrator in the config-ldap.php file.
* Duplicates are identified by First Name, Last Name & Email-Address. If a duplicate is found while importing, the related line is omitted (unless you have unchecked the ''Filter Duplicates'' checkbox).
 
<!--T:191-->
{{Note|For more details about the LDAP settings in LimeSurvey, read the [[LDAP settings|following wiki page]].}}
 
==Manage attributes== <!--T:192-->


== Creating CSV file with Excel on the Mac== <!--T:59-->
<!--T:193-->
This option allows you to add/edit the additional fields of your survey participants table. The extra fields are used to store custom survey participants data.


<!--T:60-->
When you create a CSV file with Excel 2011 on the MAC and use the standard "save as" option, you loose special characters such as ü, &euml;, é etc. when importing into LimeSurvey Token Table.


<!--T:61-->
<!--T:194-->
To make this work properly choose to save the file as a Windows text CSV file (tested on the Dutch version of Excel, saved as "Door lijstscheidingstekens gescheiden Windows tekst (.CSV)").
<center>[[File:Survey participants - Add attributes.png]]</center>


<!--T:62-->
Then when importing the file in the LimeSurvey token table, under "character set of file" choose "Mac West European". The special characters will be imported correctly.


<!--T:63-->
<!--T:195-->
Tested on LimeSurvey 2.0 only.
Type in the number of new attribute fields you want to add to your survey participants table. Click the '''Add fields''' button. The following page will be displayed:


== CSV export== <!--T:64-->


<!--T:65-->
<!--T:196-->
When you export your tokens the following fieldorder is exported:
<center>[[File:token_manage.png]]</center>


<!--T:66-->
    tid,firstname,lastname,email,emailstatus,token,language code,attribute_1,attribute_2,...


== LDAP import== <!--T:67-->
<!--T:197-->
The attribute fields table contains the following fields:
*'''Attribute field:''' The value typed here can be used when you want to perform different operations with the respective custom attribute field such as applying [[Setting conditions|conditions]] based on attribute fields or when exporting results for non-anonymous surveys.
*'''Field description:''' Used to replace the '''attribute field''' name. By giving a custom name to each attribute field, they will look nicer in the administration panel, when you browse tokens, when creating conditions based on attribute fields or when you export results for non-anonymous surveys.
*'''Mandatory?:''' If enabled, the respective attribute field must be filled in by the survey administrator. Otherwise, the respondent cannot be registered into the survey participants table.
*'''Show during registration?:''' If the survey participants have to register before completing a survey, certain details will be requested from them. If disabled, the respective attribute field won't appear on the survey registration page.
*'''Field caption:''' Use this fields to add more details about the role/usage of the respective attribute field.
*'''CPDB mapping:''' Maps the attribute in order to connect it to its corresponding attribute from the central participant database.
*'''Example data:''' Contains string examples from different fields. For example, if you want to ask for the gender of the survey participant, then you will see in the '''Example data''' field examples such as male, female, no answer etc.


<!--T:68-->
[[File:token-Ldap-import.png]]
* Queries are manually defined by the system administrator in the config-ldap.php file
* Duplicates are identified by First Name, Last Name & Email-Address. If a duplicate is found while importing the related line is omitted, unless you have unchecked the Filter Duplicates checkbox.


== A tip for generating a large number of fake e-mail addresses== <!--T:69-->
<!--T:198-->
Once you have finished filling in the boxes, do not forget to click the '''Save''' button located in the bottom-left part of the screen.


<!--T:70-->
<!--T:26-->
Sometimes you may need a large number of fake e-mail addresses and tokens. You can use functions in a spreadsheet (e.g. OpenOffice Calc) to generate them. Let's assume you want thousands addresses in a form: 1@test.com, 2@test.com, 3@test.com... Put consecutive numbers in column A: 1 in the A1, then insert function =A1+1 in A2, then copy A2 down as many times as you need. In B1 use concatenation function to join A1 and "@test.com", which is =CONCATENATE(A1;"@test.com"). Then copy B1 down for each copied A. You may generate fake names in a similar way. Finally, save the file as CSV for import in LS.
<div class="simplebox">[[File:help.png]] Detailed instructions on how to add additional attribute fields and use conditions based on these values can be found on this blog post: "[http://www.limesurvey-consulting.com/limesurvey-conditions-based-on-token-attributes/ Conditions based on token attributes]".</div>


<!--T:71-->
<!--T:199-->
With the 1.91, you can use "Generate dummy token" functionnality
To add more fields, go to the bottom of the page, and type in the '''Number of attribute fields to add''' box the desired number and click the '''Add fields''' button.


== A tip for generating a large number of individual links which include the token already== <!--T:72-->
<!--T:200-->
If you want to delete a custom attribute, go to the bottom of the page and select from the drop-down list situated under the '''Delete this attribute''' field the attribute you want to delete. Once selected, click '''Delete attribute''' and confirm the deletion.


<!--T:73-->
==Export== <!--T:201-->
The structure of the survey link is the following:


<!--T:74-->
Limesurvey 1.x: http://url-to-your-limesurvey-installation/index.php?sid=XXXX&lang=en&token={TOKEN}


<!--T:129-->
<!--T:202-->
Limesurvey 2.x: http://url-to-your-limesurvey-installation/index.php/survey/index/sid/xxxx/newtest/Y/lang/EN/token/{TOKEN}
To export a survey participants table, click the "Export" button located on the token management tools toolbar. Before exporting the survey participants list, select the desired export options.


<!--T:75-->
So you proceed similar to the example above for generating email adresses.
*First column: http://url-to-your-limesurvey-installation/index.php?sid=XXXX&lang=en&token= (for version 1.x) OR http://url-to-your-limesurvey-installation/index.php/survey/index/sid/xxxx/newtest/Y/lang/EN/token/ (for version 2.x) (same URL for all, as long as the language is the same!)
*Second column: {TOKEN} (put your tokens here, of course they must be individual)
*Third column: use the CONCATENATE function to join the first column with the second column.


= Emailing= <!--T:76-->
<!--T:203-->
<center>[[File:Survey participants - export.png]]</center>


== Email placeholders== <!--T:77-->


<!--T:78-->
<!--T:204-->
The following field names are allowed in invitation/reminder [[Email templates|email templates]] and must be entered in the survey properties. When sending out the emails these field names will be already replaced in the preview of your invitation/reminder email.
*'''Survey status:'''
**''All tokens:'' Exports all survey participants from the survey participants table;
**''Completed:'' Exports only those survey participants that have completed the survey;
**''Not completed:'' Exports survey participants that have not yet completed the survey;
**''Not started:'' Exports the survey participants that have not yet started the survey;
**''Started but not yet completed:'' Exports survey participants that have already started the survey, but have not completed it.
*'''Invitation status:''' Exports participants according to the invitation status: ''all'', ''invited'', and ''not invited'';
*'''Reminder status:''' Exports participants according to the reminder status: ''all'', ''Reminder(s) sent'', ''No reminder(s) sent'';
*'''Filter by language:''' When you create a survey, you can add additional languages besides the base language. Those additional languages can be used to export survey participants according to the language they are assigned to;
*'''Filter by email address:''' Exports entries which contain the string in the respective email address. For example, you can use it if some of your survey participants use the work email addresses from "Company A". Type ''@companya.com'' and export only the users that have received a work email address from the respective company;
*'''Delete exported participants:''' If enabled, the exported users will be deleted from your survey participants table.


<!--T:79-->
<!--T:205-->
{|
Once you have selected the exporting options, click the '''Download CSV file''' button located in the upper right part of the screen.
|{ADMINEMAIL}||Email of the Survey admin
|-
|{ADMINNAME}||Name of Survey Admin
|-
|{SURVEYNAME}||Title of your survey
|-
|{SURVEYDESCRIPTION}||Description of your survey
|}


<!--T:80-->
<!--T:65-->
The following field names are allowed in invitation/reminder emails (subject and/or body) and will be replaced while sending out the mails:
<div class="simplebox">
When you export your survey participants, the fields are exported in the following order:
<code>tid,firstname,lastname,email,emailstatus,token,language code,attribute_1,attribute_2,...</code></div>


<!--T:81-->
==Invitations & reminders== <!--T:206-->
{|
|{EMAIL}||Email of the recipient
|-
|{FIRSTNAME}||First Name
|-
|{LASTNAME}||Last Name
|-
|{SURVEYURL}||The URL pointing to the survey start - if you are sending HTML emails this will be a fully linked HTML version
|-
|@@SURVEYURL@@||The URL pointing to the survey start - this is the barebone link. Use this if you want to integrate the link in your custom HTML elements somewhere (available in v1.90 and later)
|-
|{OPTOUTURL}||The URL to deactivate sending of mail for this survey  - this will be a fully linked HTML version
|-
|{TOKEN}||Token to access the survey
|-
|{ATTRIBUTE_1}||Attribute 1
|-
|{ATTRIBUTE_2}||Attribute 2 (...and so on for more attribute fields)
|}


<!--T:82-->
<!--T:207-->
If your survey is NOT anonymous, the following field names are available to insert token data in survey text and javascript:
''Invitations & Reminders'' allows you to manage the LimeSurvey invitations system. You can send invitations or reminders to participants displayed in your [[Survey participants#Display participants|survey participants table]]. An [[Email bounce tracking system|email bounce tracking system]] can be used to help you track and mark the emails that were not delivered to the recipients (survey participants).


<!--T:83-->
{|
|{TOKEN:EMAIL}||Email of the recipient
|-
|{TOKEN:FIRSTNAME}||First Name
|-
|{TOKEN:LASTNAME}||Last Name
|-
|{TOKEN}||Token to access the survey
|-
|{TOKEN:ATTRIBUTE_1}||Attribute 1
|-
|{TOKEN:ATTRIBUTE_2}||Attribute 2 (and so on for more attribute fields)
|}


===Additional hints===
===Send email invitation=== <!--T:208-->
*If your survey is using anonymized responses then token-related placeholders will not work in the notification email templates..</div>
*Starting in Version 1.92, you can use [[Expression Manager|Expression Manager]] to use expressions for tailoring an email. Please have a look at the [[Expression Manager HowTos|Expression Manager HowTos]] for an example.</div>  
See examples on using [[Adding a question#Information from tokens table|information from tokens table]].


==Emails settings== <!--T:86-->
#'''Invitation Email Subject''': The subject line for the invitation email that gets sent out when tokens are used with your survey.
#'''Invitation Email''': This is the text for the invitation email that gets sent out when tokens are used with your survey. This is initially filled by the default invitation message (from the language files) but you can modify it to suit yourself. If you are using English as your base language, the default invitation and reminder text can be found in the limesurvey/tokens.php file. Of course if you don't plan to use tokens on your survey, whatever is in this field is irrelevant.  You can use the following "form" fields to insert individualized information in each email:
**'''{FIRSTNAME}''' - gets replaced with the token table's "firstname" value
**'''{LASTNAME}''' - gets replaced with the token table's "lastname" value
**'''{SURVEYNAME}''' - gets replaced with your surveys name
**'''{SURVEYDESCRIPTION}''' - gets replaced with your surveys description
**'''{ATTRIBUTE_1}''' - gets replaced with the token table's "attribute_1" value
**'''{ATTRIBUTE_2}''' - gets replaced with the token table's "attribute_2" value and so on
**'''{SURVEYURL}''' - gets replaced with the fully qualified URL to this particular survey - in HTML emails this is a fully linked HTML link
**'''@@SURVEYURL@@''' - Gets replaced with the survey barebone link. Use this if you want to integrate the link in your custom email HTML (available in v1.90 and later)
**'''{OPTOUTURL}''' - gets replaced with the URL for a respondent to opt-out of this particular survey


<!--T:87-->
<!--T:209-->
Note that these "form fields" apply to the following email fields.
From the survey participants table you can send email invitations in bulk to all participants who have not been sent one.
#'''Email Reminder Subject''': The subject line for the reminder email that gets sent out from the tokens tool
#'''Email Reminder''': This is the text for the reminder email that gets sent out when tokens are used with your survey. See "invitation email" for specific details on how this field is used.
#'''Confirmation Email Subject''': When tokens are used, this is the subject line of the email that gets automatically sent to participants after completion of the survey
#'''Confirmation Email''': This is the text of the email that gets sent to users after completion of the survey. Delete/blank this text remove the confirmation email sending.
#'''Public Registration Email Subject''': This is the subject line for the invitation email sent to members of the public who register for a survey.
#'''Public Registration Email''': This is the text for the invitation email sent to members of the public who register for a survey. The same "form fields" apply in this email as in the earlier ones.


==Sending emails== <!--T:88-->


=== Send invitations=== <!--T:89-->


<!--T:90-->
<!--T:90-->
[[File:token-invite.png]]
<center>[[File:token-invite.png]]</center>
 


<!--T:91-->
<!--T:91-->
You can skip tokens for which the email status field is different from 'OK', by choosing the 'Bypass token with failing email addresses' option.
You can skip survey participants who have an email status that is not "OK" by enabling the '''Bypass token with failing email addresses''' option.
 
<!--T:210-->
To overcome the [[Survey_participants#Add_participant|validity settings]] of all of your entries, enable the '''Bypass date control before sending email''' function. This way, the LimeSurvey email function will not take into account the date/time range when a token would be allowed to be used.
 


==== Resending invitations==== <!--T:92-->
==== Resending invitations==== <!--T:92-->


<!--T:93-->
<!--T:93-->
Sometimes you might want to send invitations again to certain token entries / persons. When you use the '''send invitations'''-function only e-mail addresses that ''has not previously received an invitation'' will get one. This means that if you add new addresses to the token list after the first time you sent invitations, only these new addresses will receive an invitation the second time you send invitations.
Use this functionality to send invitations again to certain survey participants. When you use the '''send invitations''' function, only an email address that ''has not previously received an invitation'' will get one. This means that if you add new email addresses to the survey participants list after the first invitations are sent, only these new addresses will receive an invitation the second time you send invitations.


<!--T:94-->
<!--T:94-->
This means that you can also edit/change an e-mail in a particular token entry that you got a bounce from and then send to only this edited address. Just substitute the date '''Invite sent?''' for a capital '''N''' (no) and click '''send invitations''' again.
This means that you can also edit an email address in a particular table entry that you received a bounced email from and then send it only to this edited address. Do this by turning off the '''Invitation sent''' field and then click '''send invitations''' again.


==== Participant opt-out==== <!--T:95-->
===Send email reminder=== <!--T:211-->


<!--T:96-->
<!--T:212-->
When you use the {OPTOUTURL} tag in your invitation/reminder email, your participants have the possibility to opt out of this particular survey by just clicking on the related URL in the email - so you don't harrass them with reminder emails. A participant that opted out of your survey will have the email status 'OptOut' set in the token.
Sends bulk email reminders to all participants from the survey participants table who have not yet responded, but have been sent their first invitation.


=== Send reminders=== <!--T:97-->


<!--T:98-->
<!--T:98-->
[[File:token-remind.png]]
<center>[[File:token-remind.png]]</center>
 


<!--T:99-->
<!--T:99-->
When sending reminders you can:
When sending reminders you can:
* bypass tokens with failing email addresses
* '''Bypass tokens with failing email addresses:''' those entries with a failing email address will be skipped - they will not receive an email;
* skip tokens for which an email has been 'recently' sent
* '''Min days between reminders:''' skip tokens if a reminder has been "recently" sent;
* skip tokens for which a given number of emails have already been sent
* '''Max reminders:''' skip tokens if a given number of reminders have already been sent;
* '''Bypass date control before sending email:''' skip those entries that are not within the time-frame that they can be used.


<!--T:100-->
<!--T:100-->
Note: A reminder will only be send to tokens where the "completed" field is not "N" (this means the respondent has either not taken or has not completed the survey).
<div class="simplebox">[[File:help.png]] '''Note:''' A reminder will be sent only to those participants where the "Completed" field is turned off (this means the respondent has either not taken or completed the survey).</div>
 


=== Sending emails by batch=== <!--T:101-->
==== Sending emails by batch==== <!--T:101-->


<!--T:102-->
<!--T:102-->
When you have to send a lot of emails at the same time, LimeSurvey will only send a first batch of N emails (this threshold is set by the administrator in the Global Settings).
When sending a large number of emails at the same time, LimeSurvey will only send the first batch of N emails (this threshold is set by the administrator from the [[Global settings#Email settings|email settings]], located in the global settings of your LimeSurvey installation).


<!--T:103-->
=== Confirmation email=== <!--T:104-->
You'll then need to click "Next" to send the next batch, and so on untill all emails have been sent.


=== Confirmation email=== <!--T:104-->


<!--T:105-->
<!--T:105-->
If you are using tokens and a participant fills out the survey, a confirmation email is sent to his/her email address.
If you are using tokens and a participant fills out the survey, a confirmation email is sent to their email address.


<!--T:106-->
<!--T:106-->
If you don't want this message to be sent, remove all content from the "Confirmation email subject" and "Confirmation email" fields -  [[General FAQ#How can I stop the system from sending confirmation emails|see these instructions]].
If you do not want this message sent, deactivate this functionality from [[Participant settings|the general settings of your survey]].
 
==Start bounce processing== <!--T:213-->
 
<!--T:214-->
When sending an email, the LimeSurvey email bounce tracking system automatically adds a survey-id and token-id to the mail header. These "custom headers" are added to each invitation email that is sent through your LimeSurvey installation to survey participants. When the email is bounced back, the original header along with the "''Delivery notification''" header is received. The system then checks for new emails and parses the emails that have these custom headers and marks the wrong email address in the survey participants table.
 
 
===Bounce settings=== <!--T:215-->
 
 
<!--T:216-->
'''Bounce settings''' options:
 
 
<!--T:217-->
<center>[[File:surveyBounseSettings.png]]</center>
 
 
<!--T:218-->
For a short description of each field, check [[Global settings#Bounce settings|the following wiki section]]. To use the LimeSurvey installation ''Global settings'', go to '''Used bounce settings''' and select the '''Use global settings''' option.
 
<!--T:219-->
{{Note|For more in-depth explanations, check our wiki on [[Email bounce tracking system|email bounce tracking system]].}}
 
<!--T:22-->
Click the [[Email_bounce_tracking_system#Setting_up_the_system|following link]] for more information on how to correctly configure this feature.
 
==Edit email templates== <!--T:220-->
 
 
<!--T:221-->
To find out more about what placeholders you can use or how you can edit the LimeSurvey email templates, read our wiki section on [[Email templates|email templates]].
 
 
==Generate tokens== <!--T:222-->
 
 
<!--T:223-->
With the help of this function, unique tokens can be created for all the individual entries from the survey participants table that have not yet received a token code.
 
 
<!--T:224-->
<center>[[File:Survey participants - Generate tokens.png]]</center>
 
==View in CPDB== <!--T:225-->
 
<!--T:226-->
The last option on the tokens management toolbar is the '''View in CPDB''' option. This allows the survey administrator to see the participants that exist in both the central participant database and the survey participants list.
 
<!--T:227-->
In the following example, we have the following survey participants list:
 
 
<!--T:228-->
<center>[[File:Survey participants list - view in cpdb.png]]</center>
 
 
<!--T:229-->
The users with ID 1 and 2 have been shared from the central participant database. To check this, go to the survey participants table management toolbar and click '''View in CPDB'''
 
 
<!--T:230-->
<center>[[File:View in CPDB - filters.png]]</center>
 
 
<!--T:231-->
As you can see, the '''View in CPDB''' function basically applies a filter to determine which users from the CPDB are present in the respective survey.
 
=Delete table= <!--T:232-->
 
<!--T:233-->
To delete your survey participants table, click the '''Display participants''' button and look for the '''Delete participants table''' button located in the upper-right part of the screen.
 
 
<!--T:234-->
<center>[[File:Delete survey participants table.png]]</center>
 
 
<!--T:235-->
A window will pop up, asking for the final confirmation.
 
 
<!--T:236-->
<center>[[File:Confirmation - delete survey participants table.png]]</center>
 
 
<!--T:237-->
Please note that this will not delete the table from your LimeSurvey installation. A backup will be created. In order to access it, you need system administrator rights.
 
<!--T:238-->
If you do wish to completely remove it, use the [[Check data integrity|check data integrity]] option that is located in the '''Configuration''' dialog.
 
=Additional hints & tips= <!--T:131-->
 
<!--T:239-->
Feel free to add any hints and tips to the list below. The ones listed were posted by members of our community:
*[[Survey participants#Allowing public registration|Allowing public registration]]
*[[Survey participants#Captchas in public registration|Captchas in public registration]]
*[[Survey participants#Can a survey using tokens ensure anonymous responses?|Can a survey using tokens ensure anonymous responses?]]
*[[Survey participants#A tip for generating a large number of fake e-mail addresses|A tip for generating a large number of fake e-mail addresses]]
*[[Survey participants#Spam problems|Spam problems]]
*[[Survey participants#Pseudonymised participation|Pseudonymised participation]]
 
 
==Allowing public registration== <!--T:124-->
 
<!--T:125-->
You can also open your survey to the public by utilizing the type of respondent control available when using tokens. To do this, initialize your survey participants table and choose to [[Participant settings|allow public registration]] in the main survey setup.  People who visit your survey's URL without a token will be given the opportunity to register.  (This setting can be later changed from the [[Participant settings|participant settings]] section that is located in the settings menu of the survey).
 
<!--T:240-->
If a participant provides an email address that is not already in the current database, an entry in the survey participants table will be created and they will be emailed an invitation containing their unique token code.
 
==CAPTCHAs in public registration== <!--T:126-->
 
<!--T:127-->
To protect your survey from robot registrations, a CAPTCHA feature can be activated for all the registration, save, and load forms. For more details, read our wiki on [[Participant settings|participant settings]].
 
==Can a survey using tokens ensure anonymous responses?== <!--T:7-->
 
<!--T:8-->
'''Yes''', tokens can be used both for anonymous and non-anonymous surveys. This is determined when creating a survey. If a survey is not anonymous (or 'tracked') then the token list can be used to find the responses that an individual has made to the survey. If the survey is anonymous, then no link (technically: foreign key relationship) is available between the respondents from the survey participants table and their corresponding answers.
 
<!--T:241-->
To enable or disable anonymized responses, check the [[Participant settings|participant settings]] wiki section.
 
==A Tip for generating a large number of fake e-mail addresses== <!--T:69-->
 
<!--T:70-->
Sometimes you may need a large number of fake e-mail addresses and tokens. You can use functions in a spreadsheet (e.g. OpenOffice Calc) to generate them. Let's assume you want thousands of addresses in a form: 1@test.com, 2@test.com, 3@test.com, and so on. Type "1" in A1. Insert function =A1+1 in A2, then copy A2 down as many times as you need so that you obtain a list of consecutive numbers. In B1 use the concatenation function to join A1 and "@test.com", which is ''=CONCATENATE(A1;"@test.com")''. Then copy B1 down so that each A cell has a correspondent (you can also generate similarly fake names). Finally, save the file as CSV in order to import it to LimeSurvey.
 
<!--T:71-->
With the launch of LimeSurvey 1.91, you can use the "Generate dummy token" functionality. However, the dummy entries do not contain any email address.
 


=== Spam problems=== <!--T:107-->
==Spam problems== <!--T:242-->


<!--T:108-->
<!--T:108-->
Often users complain not having received an invitation/reminder email because the user&rsquo;s spam filter treated the email as spam.
Users often complain about not receiving invitations or reminder emails because their email spam filters identified the message from LimeSurvey as spam.


<!--T:109-->
<!--T:109-->
If an email is treated as spam mostly depends on the spam filter being used and its settings. A spam filter usually checks the sender address and the email subject and content, so there are ways and means to influence how they treat your LimeSurvey invitation and reminder emails.
The fact that an email is treated as spam depends mostly on the spam filter being used and its settings. A spam filter usually checks the sender address, and the email subject and content. Changing its settings could solve the way in which the users' email providers treat the messages from LimeSurvey.


<!--T:110-->
<!--T:110-->
At [http://www.limesurvey-consulting.com/how-to-prevent-limesurvey-email-invitations-or-reminders-being-treated-as-spam/ this blog post] on limesurvey-consulting.com a lot of possible issues and solutions are listed.
Some possible issues and solutions are listed in the following [https://www.survey-consulting.com/how-to-prevent-limesurvey-email-invitations-or-reminders-being-treated-as-spam/ Limesurvey Consulting blog post].
 
===Wrong domain in invitation/reminder email link=== <!--T:111-->


<!--T:112-->
<!--T:112-->
LimeSurvey automatically tries to determine the URL for the invitation link by looking at the URL by which you logged in to the LimeSurvey administration. However with some server (mis-)configurations this might not work properly and you will have to set this manually.
LimeSurvey automatically tries to determine the URL for the invitation link by looking at the URL that you logged into the LimeSurvey administration with. However, with some server (mis)configurations this might not work properly and you will have to set this manually.


<!--T:113-->
<!--T:113-->
You can edit application/config/config.php to change the default base URL value. Add hostInfo property like this to the existing 'components' array.
You can edit "application/config/config.php" to change the default base URL value. Add a ''hostInfo'' property, as shown below, to the existing 'components' array.


<!--T:114-->
<!--T:114-->
<syntaxhighlight lang="php" enclose="div">    'components' => array(
<syntaxhighlight lang="php">    'components' => array(
       ...
       ...
       'request' => array(
       'config' => array(
           'hostInfo' => 'http://www.example.com',
          .......
           'publicurl' => 'http://www.example.com',
          ........
       ),
       ),
   )
   )
</syntaxhighlight>
</syntaxhighlight>
<!--T:243-->
<div class="simplebox">[[File:help.png]]For more details on how to edit the configuration file of your LimeSurvey installation, read our wiki on [[Optional settings|LimeSurvey optional settings]].</div>


<!--T:121-->
<!--T:121-->
Regarding the source of the problem: LimeSurvey tried to determine the domain from the server PHP variable $_SERVER<nowiki>[</nowiki>'HTTP_HOST'] or $_SERVER<nowiki>[</nowiki>'SERVER_NAME'].
Regarding the source of the problem, LimeSurvey tried to determine the domain from the server PHP variable: $_SERVER<nowiki>[</nowiki>'HTTP_HOST'] or $_SERVER<nowiki>[</nowiki>'SERVER_NAME'].


<!--T:122-->
<!--T:122-->
Some web server software do not properly seem to provide this information or are mis-configured.
Some web server software do not properly seem to provide this information or are misconfigured.
 
= Public registration= <!--T:123-->


==Allowing public registration== <!--T:124-->
==Pseudonymised participation== <!--T:244-->  


<!--T:125-->
<!--T:245-->
You may want to open your survey to the public, but utilize the sort of respondent control available when using tokens. This is possible: If you initialize your tokens table, and have chosen to Allow Public Registration in the main survey setup, people who visit your survey's URL without a token, will be given the opportunity to register. If they provide an email address that is not already in the current survey's tokens table, an entry in the tokens table will be created, and they will be emailed an invitation containing their unique Token. All tokens provided to "registering" visitors will begin with the letter "R".
With the dummy tokens, you may create a form of pseudonymised participation by exporting the created dummy tokens and then combining them with your participant list externally. That way, LimeSurvey can be used as a survey platform without putting personal information of your participants into the system.  


==Captchas in public registration== <!--T:126-->
<!--T:246-->
The only downside is that you will have to distribute the participation tokens yourself.


<!--T:127-->
To protect your survey from robot registration there is a captcha feature on all Registration, Save and Load forms. (starting from version 1.48) This feature is only available if you have GD-support activated in your PHP configuration. (see [[Installation|Installation Requirements]])
</translate>
</translate>

Latest revision as of 11:36, 30 November 2023

Introduction

The Survey Participants functionality allows you to invite a group of people to participate in your survey, keep track of who has completed the survey, and ensure that each person can only participate once. The survey participants table feature allows you to do the following:

  • Import a list of names and email addresses for participants from a CSV file or a LDAP query;
  • Generate a unique token code for each participant (invitation code);
  • Send an email invitation to each person on your list (by group or individually);
  • Send a reminder email to each person on your list who has not yet responded (by group or individually);
  • Track who has responded from your survey participants list;
  • Restrict access for people who have not received a token, and those with a token who have already responded;
  • Edit/change any details in your list;
  • Create email templates for invitations & reminders.

Once the survey is switched to Closed-access mode only the people that provide a unique token code (that has not been already used) can access the survey. (You need to create a survey participants table first for the respective survey).

If you enable the Allow public registration option from the Survey participants table panel, the survey participants will be able to register for your survey by receiving an automatically generated token code.

Some tokens-related settings are stored in the participant settings panel.

How to create a survey participants table

to initialize a survey participants table: Settings > Survey menu > Survey participants:



The following message will be displayed:



If you initialize a participant table, the survey will be accessible only to those participants who provide a token code in the registration process (either manually or by URL). This way, the survey will be switched to closed-access mode.

Once initialized, a window will be displayed confirming the creation of the survey participants table.


Reactivate a survey participants table

When you delete a survey participants table, a backup is created. It can later be reactivated if you wish to use that specific survey participants table in another survey.


The survey participants table management tools

A survey participant summary will be displayed if the survey participants table was previously created. This is the default screen:



  • Total records: The number of survey participants from the survey participants table;
  • Total with no unique token: Displays the number of users without an assigned token code;
  • Total invitations sent: Shows the number of invitations that have been sent to your survey participants from the Survey participants table by using the Invitations option from the Invitations & reminders menu;
  • Total opted out: Displays the total number of survey participants that have decided to opt out from the survey;
  • Total screened out: Used to screen and exclude potential participants who do not match certain criteria.
  • Total surveys completed: Shows the number of the surveys that have been completed by those users who have been allocated a token code.


Above the Survey participant summary table, you will find the survey participants table management tools:



  • Display participants: Displays a survey participants table with all the current participants. From the browse screen you can edit or delete individual entries from the table as well as perform a number of other useful functions (see the Display participants wiki section below for more details);
  • Create...: Allows the survey administrator to add respondents into the survey participants table either via the Add participant option or via the Import participants function;
  • Manage attributes: Allows the survey administrator to add additional fields to the survey participants table to store custom participant data;
  • Export: To export the token tables and use them in other surveys, use this function. The file will be saved in the .CSV format;
  • Survey participants: Allows you to invite or remind your participants from the survey participants table to fill out your online survey;
  • Generate tokens: Allows the survey administrator to quickly allocate a random unique token code to each user from the survey participants table that does not have one;
  • View in CPDB: Provides quick access to your LimeSurvey installation central participant database (CPDB). From there you can allocate CPDB users as survey participants to any survey.


Display participants

Shows the entries list from the survey participants table and allows the user to:



Sort survey participants

The second row of the table includes various criteria that can help the survey administrator sort the entries. If you click on any of the columns/criteria from the table, the screen will be refreshed, showing the survey participants ordered in accordance to the criterion you just clicked on. Click twice on it to get the results displayed in a descending order.



Filter survey participants

To filter survey participants, choose the column that you want to filter. Then type in the values/strings that you want to filter on in the empty box below the desired column.



For example, type "OK" in the email status field to return only those participants that have a valid email address.

Hint: You can also use operators when filtering the survey participants (e.g.,: >, <, >=, <=, = ).
  Attention : To filter "invitation sent", "reminder sent", and "survey completed" columns, use "=N" or "<>N", meaning "equal No" and "not equal No", respectively.


Perform a specific action to an individual entry

The Action column is where you can find all the actions that are available for each individual entry from the survey participants table. The possible actions that can be performed are:



  • View response details: If the survey is a "tracked" (i.e., not anonymous) survey, another button will appear, allowing you to view the response from this individual entry;
  • Launch the survey with this token: Used to execute a survey by using the generated token code;
  • Send email invitation: Use this option to send an email invitation to the respective participant to complete the survey;
  • Edit the survey participant: Click to change survey participant data;
  • Delete survey participant: Click to delete that particular entry;
  • View this person in the central participant database: An icon will be displayed if the respective entry can also be found in the central participant database.

Perform a specific action to more than one entry

On the bottom-left part of the table, you will find the Selected participant(s)... button that allows you to perform certain actions at a macro level:



  • Send email invitations: Send email invitations to the selected survey participants;
  • Send email reminder: Send email reminders to the selected survey participants;
  • Add participants to central database: To use some of the token entries in another survey, add the selected participants to the central participant database. From there, you have the option to add the participants to any survey you wish. For more details, continue reading the Share this participant wiki page.


Before executing any of the functions mentioned above, do not forget to select the survey participants upon which the action will be performed.


Create...

To have more participants listed in the survey participants table, you can add new ones or import them from a CSV file or LDAP query.



Add participant

A typical token entry contains the following fields:



  • ID: An integer that is automatically assigned to each survey participant;
  • Completed?: Disabled by default. If enabled, it would contain the date when the survey was completed. No invitations or reminders are sent to the respective users if this is enabled. It is automatically enabled if the respective survey participant completed the survey using his or her assigned token code;
  • First name: The first name of the survey participant;
  • Last name: The last name of the survey participant;
  • Token: This is the invitation code. It can be manually or automatically generated (via the Generate tokens button);
  • Language: Here you can select the default language of the survey for the respective participant;
  • Email: The email address of the participant;
  • Email status: This field helps you track invalid email addresses. For instance, if the survey administrator received email error notifications from this email, then they can set this field to anything other than "OK" (for instance "user unknown" or "mailbox quota exceeded"). Marking this field with an email status other than "OK" will help skip this entry when sending invitation or reminder emails. Note that this is completely manual, unless you decide to implement a script which updates this field automatically;
  • Invitation sent?: If enabled, contains the date when the invitation email was sent;
  • Reminder sent?: If enabled, contains the date when the reminder email was sent;
  • Uses left: Counts the number of times the token can be used. Note: When increasing this value (default = 1) for a user who has already filled out the survey (which sets uses left to 0), you also have to switch the Completed field from "Yes" to "No";
  • Valid from: & Until:You can set a date/time range for when this token can be used. You can leave these empty if you don't want to limit the participation time frame for certain users. If the user is answering the survey and the participation time ends, then the user is locked out immediately and won't be able to finish the survey.

Note that the Add survey participant panel has two tabs: the General tab and the Additional attributes tab. The additional attributes tab offers you access to your custom attributes - read the following wiki section for more details.


Create dummy participants

A dummy participant can be used when you do not want to send tokens by email to survey participants, but give them token codes by other means. For example, students doing class evaluations could be given a paper with an invitation code to be entered at the beginning of the online survey. This way, the likelihood of receiving more responses and feedback increases.

Click Create dummy participants and the following page will be displayed:



The Number of participants field allows you to enter the number of dummy participants you want to add to your survey participants table. The explanation of the other fields can be found in the Add participant wiki subsection.

After completing the fields, press Save located in the upper-right part of the screen.


To check whether they were added or not, check the Survey participants table:


Import participants from a CSV file

The import function allows you to import information from a CSV file or LDAP query.



  • Choose the CSV file to upload: Pick the CSV file you wish to import. To eliminate any possible errors, we recommend that you import a standard CSV (comma delimited) file with optional double quotes around values (default for OpenOffice and Excel).

The first line must contain the field names. It must also contain the following fields: firstname, lastname, email.

They have to contain at least one character. Simply adding double quotes and no characters between them will not work!

The other fields are optional: emailstatus, token, language, validfrom, validuntil, attribute_1, attribute_2, attribute_3, usesleft, ... .


 Hint: To obtain a full list of token field names, export an existing survey participants table.


 Hint: The date format for the "validfrom" and "validuntil" fields in the CSV token inport file is "YYYY-MM-DD HH:MM".


  • Character set of the file: Select the option that fits the characters used in the CSV file;
  • Separator used: You can let LimeSurvey automatically discover the used separator in your CSV or select either the comma separator or the semicolon one;
  • Filter blank email addresses: If enabled, the survey participants without an email address will not be imported into your survey participants table;
  • Allow invalid email addresses: If disabled, this function will look into the email addresses fields and check whether the addresses have the structure of an email or not (e.g.: a@a.net);
  • Display attribute warnings: If enabled, after the importing process warnings will be displayed in case there is something wrong with the fields. For example. you might get an attribute warning if nothing is provided in any of the mandatory fields or if an email is incorrectly introduced in the CSV file.
  • Filter duplicate records: If enabled, you can set which fields are used to identify duplicates. By default First name, Last name & Email-address are preselected. If a duplicate is found while importing, the related line is omitted.
  • Duplicates are determined by: Select the fields that you want to filter on for duplicates.


You can also import customized attributes when importing a CSV file. You will have to define what attributes will be added. You can do it like this:


   email,attribute_1 <Casenr>, token, attribute_2 <Title>, attribute_3 <destination>, lastname,firstname,attribute_4 <Sender>


Once you are done choosing the desired importing settings, do not forget to click on the Upload button.


Troubleshooting the import of survey participants

A common error when users try to import tokens is an invalid CSV file. This is often caused by Microsoft Excel. Many users have a list of email addresses saved as an XLS document. A file can be saved as CSV in Excel. However, depending on the locale of the OS, Microsoft Excel may use semi-colons (;) as comma separator, while a standard CSV file uses commas (,) as separators. If you do not know which one you use, open the file with a standard text editor and verify which separator was used.

Recommended free raw text editors are: PSPad, NotePad2 or Notepad++ for Windows, and TextWrangler for Macintosh.


LimeSurvey should also detect semicolons as separators. However, in case the import process is not properly working, replace the semicolons with commas. Double quotes should also be added around values.


Import participants from a LDAP query

  Attention : This option is recommended only to those users with advanced knowledge in LDAP queries.


This import function allows you to import information from a LDAP query (tested on openLdap, but should work in any LDAP compliant directory including ActiveDirectory). The following options are available on the Import survey participants from LDAP page:


  • Queries are manually defined by the system administrator in the config-ldap.php file.
  • Duplicates are identified by First Name, Last Name & Email-Address. If a duplicate is found while importing, the related line is omitted (unless you have unchecked the Filter Duplicates checkbox).
For more details about the LDAP settings in LimeSurvey, read the following wiki page.

Manage attributes

This option allows you to add/edit the additional fields of your survey participants table. The extra fields are used to store custom survey participants data.



Type in the number of new attribute fields you want to add to your survey participants table. Click the Add fields button. The following page will be displayed:



The attribute fields table contains the following fields:

  • Attribute field: The value typed here can be used when you want to perform different operations with the respective custom attribute field such as applying conditions based on attribute fields or when exporting results for non-anonymous surveys.
  • Field description: Used to replace the attribute field name. By giving a custom name to each attribute field, they will look nicer in the administration panel, when you browse tokens, when creating conditions based on attribute fields or when you export results for non-anonymous surveys.
  • Mandatory?: If enabled, the respective attribute field must be filled in by the survey administrator. Otherwise, the respondent cannot be registered into the survey participants table.
  • Show during registration?: If the survey participants have to register before completing a survey, certain details will be requested from them. If disabled, the respective attribute field won't appear on the survey registration page.
  • Field caption: Use this fields to add more details about the role/usage of the respective attribute field.
  • CPDB mapping: Maps the attribute in order to connect it to its corresponding attribute from the central participant database.
  • Example data: Contains string examples from different fields. For example, if you want to ask for the gender of the survey participant, then you will see in the Example data field examples such as male, female, no answer etc.


Once you have finished filling in the boxes, do not forget to click the Save button located in the bottom-left part of the screen.

Detailed instructions on how to add additional attribute fields and use conditions based on these values can be found on this blog post: "Conditions based on token attributes".

To add more fields, go to the bottom of the page, and type in the Number of attribute fields to add box the desired number and click the Add fields button.

If you want to delete a custom attribute, go to the bottom of the page and select from the drop-down list situated under the Delete this attribute field the attribute you want to delete. Once selected, click Delete attribute and confirm the deletion.

Export

To export a survey participants table, click the "Export" button located on the token management tools toolbar. Before exporting the survey participants list, select the desired export options.



  • Survey status:
    • All tokens: Exports all survey participants from the survey participants table;
    • Completed: Exports only those survey participants that have completed the survey;
    • Not completed: Exports survey participants that have not yet completed the survey;
    • Not started: Exports the survey participants that have not yet started the survey;
    • Started but not yet completed: Exports survey participants that have already started the survey, but have not completed it.
  • Invitation status: Exports participants according to the invitation status: all, invited, and not invited;
  • Reminder status: Exports participants according to the reminder status: all, Reminder(s) sent, No reminder(s) sent;
  • Filter by language: When you create a survey, you can add additional languages besides the base language. Those additional languages can be used to export survey participants according to the language they are assigned to;
  • Filter by email address: Exports entries which contain the string in the respective email address. For example, you can use it if some of your survey participants use the work email addresses from "Company A". Type @companya.com and export only the users that have received a work email address from the respective company;
  • Delete exported participants: If enabled, the exported users will be deleted from your survey participants table.

Once you have selected the exporting options, click the Download CSV file button located in the upper right part of the screen.

When you export your survey participants, the fields are exported in the following order:

tid,firstname,lastname,email,emailstatus,token,language code,attribute_1,attribute_2,...

Invitations & reminders

Invitations & Reminders allows you to manage the LimeSurvey invitations system. You can send invitations or reminders to participants displayed in your survey participants table. An email bounce tracking system can be used to help you track and mark the emails that were not delivered to the recipients (survey participants).


Send email invitation

From the survey participants table you can send email invitations in bulk to all participants who have not been sent one.



You can skip survey participants who have an email status that is not "OK" by enabling the Bypass token with failing email addresses option.

To overcome the validity settings of all of your entries, enable the Bypass date control before sending email function. This way, the LimeSurvey email function will not take into account the date/time range when a token would be allowed to be used.


Resending invitations

Use this functionality to send invitations again to certain survey participants. When you use the send invitations function, only an email address that has not previously received an invitation will get one. This means that if you add new email addresses to the survey participants list after the first invitations are sent, only these new addresses will receive an invitation the second time you send invitations.

This means that you can also edit an email address in a particular table entry that you received a bounced email from and then send it only to this edited address. Do this by turning off the Invitation sent field and then click send invitations again.

Send email reminder

Sends bulk email reminders to all participants from the survey participants table who have not yet responded, but have been sent their first invitation.



When sending reminders you can:

  • Bypass tokens with failing email addresses: those entries with a failing email address will be skipped - they will not receive an email;
  • Min days between reminders: skip tokens if a reminder has been "recently" sent;
  • Max reminders: skip tokens if a given number of reminders have already been sent;
  • Bypass date control before sending email: skip those entries that are not within the time-frame that they can be used.
Note: A reminder will be sent only to those participants where the "Completed" field is turned off (this means the respondent has either not taken or completed the survey).


Sending emails by batch

When sending a large number of emails at the same time, LimeSurvey will only send the first batch of N emails (this threshold is set by the administrator from the email settings, located in the global settings of your LimeSurvey installation).

Confirmation email

If you are using tokens and a participant fills out the survey, a confirmation email is sent to their email address.

If you do not want this message sent, deactivate this functionality from the general settings of your survey.

Start bounce processing

When sending an email, the LimeSurvey email bounce tracking system automatically adds a survey-id and token-id to the mail header. These "custom headers" are added to each invitation email that is sent through your LimeSurvey installation to survey participants. When the email is bounced back, the original header along with the "Delivery notification" header is received. The system then checks for new emails and parses the emails that have these custom headers and marks the wrong email address in the survey participants table.


Bounce settings

Bounce settings options:



For a short description of each field, check the following wiki section. To use the LimeSurvey installation Global settings, go to Used bounce settings and select the Use global settings option.

For more in-depth explanations, check our wiki on email bounce tracking system.

Click the following link for more information on how to correctly configure this feature.

Edit email templates

To find out more about what placeholders you can use or how you can edit the LimeSurvey email templates, read our wiki section on email templates.


Generate tokens

With the help of this function, unique tokens can be created for all the individual entries from the survey participants table that have not yet received a token code.


View in CPDB

The last option on the tokens management toolbar is the View in CPDB option. This allows the survey administrator to see the participants that exist in both the central participant database and the survey participants list.

In the following example, we have the following survey participants list:



The users with ID 1 and 2 have been shared from the central participant database. To check this, go to the survey participants table management toolbar and click View in CPDB



As you can see, the View in CPDB function basically applies a filter to determine which users from the CPDB are present in the respective survey.

Delete table

To delete your survey participants table, click the Display participants button and look for the Delete participants table button located in the upper-right part of the screen.



A window will pop up, asking for the final confirmation.



Please note that this will not delete the table from your LimeSurvey installation. A backup will be created. In order to access it, you need system administrator rights.

If you do wish to completely remove it, use the check data integrity option that is located in the Configuration dialog.

Additional hints & tips

Feel free to add any hints and tips to the list below. The ones listed were posted by members of our community:


Allowing public registration

You can also open your survey to the public by utilizing the type of respondent control available when using tokens. To do this, initialize your survey participants table and choose to allow public registration in the main survey setup. People who visit your survey's URL without a token will be given the opportunity to register. (This setting can be later changed from the participant settings section that is located in the settings menu of the survey).

If a participant provides an email address that is not already in the current database, an entry in the survey participants table will be created and they will be emailed an invitation containing their unique token code.

CAPTCHAs in public registration

To protect your survey from robot registrations, a CAPTCHA feature can be activated for all the registration, save, and load forms. For more details, read our wiki on participant settings.

Can a survey using tokens ensure anonymous responses?

Yes, tokens can be used both for anonymous and non-anonymous surveys. This is determined when creating a survey. If a survey is not anonymous (or 'tracked') then the token list can be used to find the responses that an individual has made to the survey. If the survey is anonymous, then no link (technically: foreign key relationship) is available between the respondents from the survey participants table and their corresponding answers.

To enable or disable anonymized responses, check the participant settings wiki section.

A Tip for generating a large number of fake e-mail addresses

Sometimes you may need a large number of fake e-mail addresses and tokens. You can use functions in a spreadsheet (e.g. OpenOffice Calc) to generate them. Let's assume you want thousands of addresses in a form: 1@test.com, 2@test.com, 3@test.com, and so on. Type "1" in A1. Insert function =A1+1 in A2, then copy A2 down as many times as you need so that you obtain a list of consecutive numbers. In B1 use the concatenation function to join A1 and "@test.com", which is =CONCATENATE(A1;"@test.com"). Then copy B1 down so that each A cell has a correspondent (you can also generate similarly fake names). Finally, save the file as CSV in order to import it to LimeSurvey.

With the launch of LimeSurvey 1.91, you can use the "Generate dummy token" functionality. However, the dummy entries do not contain any email address.


Spam problems

Users often complain about not receiving invitations or reminder emails because their email spam filters identified the message from LimeSurvey as spam.

The fact that an email is treated as spam depends mostly on the spam filter being used and its settings. A spam filter usually checks the sender address, and the email subject and content. Changing its settings could solve the way in which the users' email providers treat the messages from LimeSurvey.

Some possible issues and solutions are listed in the following Limesurvey Consulting blog post.

LimeSurvey automatically tries to determine the URL for the invitation link by looking at the URL that you logged into the LimeSurvey administration with. However, with some server (mis)configurations this might not work properly and you will have to set this manually.

You can edit "application/config/config.php" to change the default base URL value. Add a hostInfo property, as shown below, to the existing 'components' array.

    'components' => array(
       ...
       'config' => array(
           .......
           'publicurl' => 'http://www.example.com',
           ........
       ),
   )
For more details on how to edit the configuration file of your LimeSurvey installation, read our wiki on LimeSurvey optional settings.

Regarding the source of the problem, LimeSurvey tried to determine the domain from the server PHP variable: $_SERVER['HTTP_HOST'] or $_SERVER['SERVER_NAME'].

Some web server software do not properly seem to provide this information or are misconfigured.

Pseudonymised participation

With the dummy tokens, you may create a form of pseudonymised participation by exporting the created dummy tokens and then combining them with your participant list externally. That way, LimeSurvey can be used as a survey platform without putting personal information of your participants into the system.

The only downside is that you will have to distribute the participation tokens yourself.