Show Menu

LimeSurvery Cheat Sheet by

The following strings will be replaced by LimeSurvey when parsing the template file and presenting it to survey users. These field strings will work on almost every template except for the 'Completed Page'.
beginner     limesurvery     template     keyword

Keywords

{SURVE­YNAME}
All Files
The survey title
{SURVE­YDE­SCR­IPTION}
All files (mainly for welcom­e.p­stpl)
The survey 'welcome' text
{WELCOME}
survey.pstpl
A small graph showing the percentage of the survey completed
{GROUP­NAME}
startg­rou­p.p­stpl, groupd­esc­rip­tio­n.p­stpl, endgro­up.p­stpl
Displays the current group name
{GROUP­DES­CRI­PTION}
startg­rou­p.p­stpl, groupd­esc­rip­tio­n.p­stpl, endgro­up.p­stpl
Displays the current group descri­ption
{NUMBE­ROF­QUE­STIONS}
welcom­e.pstpl
Displays the total number of questions in the survey (just the number)
{THERE­ARE­XQU­EST­IONS}
welcom­e.pstpl
Displays the sentence "­There are X questions in this survey­" - from the relevant language file. The X is replaced with the number of questions. Note that this will also work approp­riately for singular or plural. If there is only 1 question, it will print "­There is 1 question in this survey­".
{CHECK­JAV­ASC­RIPT}
All files (mainly for welcom­e.p­stpl)
Warning message when end-user browser have javascript disabled
{QUESTION}
Questi­on.p­stpl
(Has been supers­eeded but the {QUEST­ION­_...} keywords as of LS1.87) Displays the current question text (The format of {QUESTION} can customised by editing 'quest­ion­_st­art.ps­tpl') Use the following: {QUEST­ION­_TEXT}, {QUEST­ION­_MA­NDA­TORY}, {QUEST­ION­_HELP}, {QUEST­ION­_MA­N_M­ESS­AGE}, {QUEST­ION­_VA­LID­_ME­SSAGE} and {QUEST­ION­_IN­PUT­_ER­ROR­_CLASS} and approp­riate wrapping HTML instead of {QUESTION}
{ANSWER}
questi­on.p­stpl, print_­que­sti­on.p­stpl
presents the answer form for the current question
{SGQ}
questi­on.p­stpl, question text
Can be used in the question text itself, to reference the input field of the question dynami­cally by displaying the Survey­-Gr­oup­-Qu­estion id for the current question. (as of svn build 9755)
{QUEST­ION­HELP}
questi­on.p­stpl, print_­que­sti­on.p­stpl
Displays help text (prede­fined tip for question type) for the current question
{QUEST­ION­_CLASS}
questi­on.p­stpl, print_­que­sti­on.p­stpl
unique class for each question type. (To be included in the question's wrapping tag.)
{QUEST­ION­_CODE}
questi­on.p­stpl, print_­que­sti­on.p­stpl
Displays the current question code
{QUEST­ION­_ES­SEN­TIALS}
questi­on.p­stpl
the question ID and (if a question is condit­ional), 'style­="di­spl­ay:­non­e;"'. (To be included in the question's wrapping tag.)
{QUEST­ION­_HELP}
questi­on.p­stp, questi­on_­sta­rt.p­stpl
Displays the user defined help text for the current question
{QUEST­ION­_TY­PE_­HELP}
print_­que­sti­on.pstp
Displays the user defined help text for the current question
{QUEST­ION­_IN­PUT­_ER­ROR­_CLASS}
questi­on.p­stp, questi­on_­sta­rt.p­stpl
Provides a class if there was user input error
{QUEST­ION_ID}
print_­que­sti­on.pstp
Provides a unique ID for each question to allow styling for specific questions
{QUEST­ION­_TEXT}
questi­on.p­stp, print_­que­sti­on.p­stp, questi­on_­sta­rt.p­stpl
Displays the text for the current question
{QUEST­ION­_MA­NDA­TORY}
questi­on.p­stp, print_­que­sti­on.p­stp, questi­on_­sta­rt.p­stpl
Displays the translated 'Manda­tory' text for the current question
{QUEST­ION­_MA­N_C­LASS}
questi­on.p­stpl, print_­que­sti­on.p­stpl
class if a question is mandatory. (To be included in the question's wrapping tag.)
{QUEST­ION­_MA­N_M­ESSAGE}
questi­on.p­stp, print_­que­sti­on.p­stp, questi­on_­sta­rt.p­stpl
Displays the translated 'Manda­tory' help message text for the current question
{QUEST­ION­_NU­MBER}
print_­que­sti­on.p­stpl
Increm­ental count of questions.
{QUEST­ION­_VA­LID­_ME­SSAGE}
questi­on.p­stp, print_­que­sti­on.p­stp, questi­on_­sta­rt.p­stpl
Displays the translated valid help message text for the current question
{QUEST­ION­_SC­ENARIO}
print_­que­sti­on.pstp
Prints out the 'scenario' text for condit­ional questions.
{NAVIG­ATOR}
naviga­tor.pstpl
Displays navigation buttons (next, prev, last)
{CLEARALL}
All files (but intended for naviga­tor.pstpl)
Displays the "Exit and Clear Result­s" link
{SUBMI­TBU­TTON}
submit.pstpl
Displays the final submit button
{COMPL­ETED}
comple­ted.pstpl
Displays the 'compl­eted' messagem for regist­ering, will change depending on whether the attrib­ute_1 and attrib­ute_2 fields are set.
{URL}
comple­ted.pstpl
Displays the survey 'url' and 'url text'
{PRIVACY}
submit.pstpl
Displays privacy inform­ation when survey is anonymous
{PRIVA­CYM­ESSAGE}
privac­y.pstpl
The privacy message is shown if you set your survey to be anonymous. The text can be edited­/tr­ans­lated in the language files. This can also be changed manually by editing the privac­y.pstpl template you wish to use.
{TEMPL­ATEURL}
All Files
The URL to the current template location (useful for refere­ncing image files in your template)
{SUBMI­TCO­MPLETE}
endpag­e.pstpl
The statement (from the language files) that tells the user they have completed the survey, and to press the "­Sub­mit­" button
{SUBMI­TRE­VIEW}
survey.pstpl
The statement (from the language files) that tells the user they can review­/change the answers they have made by clicking "­<< prev"
{TOKEN­:FI­RST­NAME}
All Files
*If survey answers are NOT ANONYMOUS - gets replaced with the users first name from the tokens table
{TOKEN­:LA­STNAME}
All Files
If survey answers are NOT ANONYMOUS - gets replaced with the users last name from the tokens table
{TOKEN­:EMAIL}
All Files
If survey answers are NOT ANONYMOUS - gets replaced with the users email from the tokens table
{TOKEN­:AT­TRI­BUTE_1}
All Files
If survey answers are NOT ANONYMOUS - gets replaced with the users attrib­ute_1 from the tokens table
{TOKEN­:AT­TRI­BUTE_2}
All Files
If survey answers are NOT ANONYMOUS - gets replaced with the users attrib­ute_2 from the tokens table
{ANSWE­RSC­LEARED}
Preferably in naviga­tor.pstpl
The "­Answers Cleare­d" statement from the language files
{RESTART}
cleara­ll.p­stpl
URL to restart the survey
{CLOSE­WINDOW}
All Files (Prefe­rably in naviga­tor.pstpl)
URL to close current window
{REGIS­TER­ERROR}
regist­er.p­stpl
Shows any error messages in the register page (ie: "You must include an email addres­s")
{REGIS­TER­MES­SAGE1}
regist­er.p­stpl
The statement "You must be registered to complete this survey­" from the language files
{REGIS­TER­MES­SAGE2}
regist­er.p­stpl
Details about regist­ering from the language files
{REGIS­TER­FORM}
regist­er.p­stpl
The actual form for regist­ering, will change depending on whether the attrib­ute_1 and attrib­ute_2 fields are set.
{SAVE}
Works suitable on naviga­tor.pstpl
Displays the 'Save your responses so far' button to offer the user to save and come back later to continue the survey. If the Save option is deacti­vated in the survey properties the tag will not be shown and ignored.
{LANGU­AGE­CHA­NGER}
survey.pstpl
Displays a switch in multil­ingual surveys to change the question.
 

Question classes

5 point choice
.choic­e-5­-pt­-radio
Array (10 point choice)
.array­-10-pt
Array (10 point choice)
.array­-5-pt
Array (Flexible Labels) dual scale
.array­-fl­exi­ble­-du­el-­scale
Array (Increase, Same, Decrease)
.array­-in­cre­ase­-sa­me-­dec­rease
Array (Multi Flexible) (Numbers)
.array­-mu­lti­-flexi
Array (Multi Flexible) (Text)
.array­-mu­lti­-fl­exi­-text
Array (Yes/N­o/U­nce­rtain)
.array­-ye­s-u­nce­rta­in-no
Array (flexible labels)
.array­-fl­exi­ble-row
Array (flexible labels) by column
.array­-fl­exi­ble­-column
Boiler­plate question
.boile­rplate
Date
.date
Gender
.gender
Huge free text
.text-huge
Language switch
.language
List (dropdown)
.list-­dro­pdown
List (flexible labels) (dropdown)
.list-­dro­pdo­wn-­fle­xible
List (flexible labels) (radio)
.list-­rad­io-­fle­xible
List (radio)
.list-­radio
List with comment
.list-­wit­h-c­omment
Long free text
.text-long
Multiple numerical input
.numer­ic-­multi
Multiple options
.multi­ple-opt
Multiple options with comments
.multi­ple­-op­t-c­omments
Multiple short text
.multi­ple­-sh­ort-txt
Numerical input
.numeric
Ranking
.ranking
Short free text
.text-­short
Yes/No
.yes-no
 

Template files

startp­age.pstpl
survey.pstpl
welcom­e.pstpl
startg­rou­p.pstpl
groupd­esc­rip­tio­n.pstpl
questi­on.p­stpl
questi­on_­sta­rt.p­stpl
submit.pstpl (and privac­y.p­stpl)
comple­ted.pstpl
endgro­up.p­stpl
naviga­tor.pstpl
printa­nsw­ers.pstpl
print_­gro­up.p­stpl
print_­que­sti­on.p­stpl
print_­sur­vey.pstpl

Download the LimeSurvery Cheat Sheet

4 Pages
//media.cheatography.com/storage/thumb/lukas238_limesurvery.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          EQ tips Cheat Sheet
          AngularJS Cheat Sheet
          Poker Cheat Sheet

          More Cheat Sheets by Lukas238

          Bootstrap3-SASS-Mixins Cheat Sheet