{SURVEYNAME} |
All Files |
The survey title |
{SURVEYDESCRIPTION} |
All files (mainly for welcome.pstpl) |
The survey 'welcome' text |
{WELCOME} |
survey.pstpl |
A small graph showing the percentage of the survey completed |
{GROUPNAME} |
startgroup.pstpl, groupdescription.pstpl, endgroup.pstpl |
Displays the current group name |
{GROUPDESCRIPTION} |
startgroup.pstpl, groupdescription.pstpl, endgroup.pstpl |
Displays the current group description |
{NUMBEROFQUESTIONS} |
welcome.pstpl |
Displays the total number of questions in the survey (just the number) |
{THEREAREXQUESTIONS} |
welcome.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 appropriately for singular or plural. If there is only 1 question, it will print "There is 1 question in this survey". |
{CHECKJAVASCRIPT} |
All files (mainly for welcome.pstpl) |
Warning message when end-user browser have javascript disabled |
{QUESTION} |
Question.pstpl |
(Has been superseeded but the {QUESTION_...} keywords as of LS1.87) Displays the current question text (The format of {QUESTION} can customised by editing 'question_start.pstpl') Use the following: {QUESTION_TEXT}, {QUESTION_MANDATORY}, {QUESTION_HELP}, {QUESTION_MAN_MESSAGE}, {QUESTION_VALID_MESSAGE} and {QUESTION_INPUT_ERROR_CLASS} and appropriate wrapping HTML instead of {QUESTION} |
{ANSWER} |
question.pstpl, print_question.pstpl |
presents the answer form for the current question |
{SGQ} |
question.pstpl, question text |
Can be used in the question text itself, to reference the input field of the question dynamically by displaying the Survey-Group-Question id for the current question. (as of svn build 9755) |
{QUESTIONHELP} |
question.pstpl, print_question.pstpl |
Displays help text (predefined tip for question type) for the current question |
{QUESTION_CLASS} |
question.pstpl, print_question.pstpl |
unique class for each question type. (To be included in the question's wrapping tag.) |
{QUESTION_CODE} |
question.pstpl, print_question.pstpl |
Displays the current question code |
{QUESTION_ESSENTIALS} |
question.pstpl |
the question ID and (if a question is conditional), 'style="display:none;"'. (To be included in the question's wrapping tag.) |
{QUESTION_HELP} |
question.pstp, question_start.pstpl |
Displays the user defined help text for the current question |
{QUESTION_TYPE_HELP} |
print_question.pstp |
Displays the user defined help text for the current question |
{QUESTION_INPUT_ERROR_CLASS} |
question.pstp, question_start.pstpl |
Provides a class if there was user input error |
{QUESTION_ID} |
print_question.pstp |
Provides a unique ID for each question to allow styling for specific questions |
{QUESTION_TEXT} |
question.pstp, print_question.pstp, question_start.pstpl |
Displays the text for the current question |
{QUESTION_MANDATORY} |
question.pstp, print_question.pstp, question_start.pstpl |
Displays the translated 'Mandatory' text for the current question |
{QUESTION_MAN_CLASS} |
question.pstpl, print_question.pstpl |
class if a question is mandatory. (To be included in the question's wrapping tag.) |
{QUESTION_MAN_MESSAGE} |
question.pstp, print_question.pstp, question_start.pstpl |
Displays the translated 'Mandatory' help message text for the current question |
{QUESTION_NUMBER} |
print_question.pstpl |
Incremental count of questions. |
{QUESTION_VALID_MESSAGE} |
question.pstp, print_question.pstp, question_start.pstpl |
Displays the translated valid help message text for the current question |
{QUESTION_SCENARIO} |
print_question.pstp |
Prints out the 'scenario' text for conditional questions. |
{NAVIGATOR} |
navigator.pstpl |
Displays navigation buttons (next, prev, last) |
{CLEARALL} |
All files (but intended for navigator.pstpl) |
Displays the "Exit and Clear Results" link |
{SUBMITBUTTON} |
submit.pstpl |
Displays the final submit button |
{COMPLETED} |
completed.pstpl |
Displays the 'completed' messagem for registering, will change depending on whether the attribute_1 and attribute_2 fields are set. |
{URL} |
completed.pstpl |
Displays the survey 'url' and 'url text' |
{PRIVACY} |
submit.pstpl |
Displays privacy information when survey is anonymous |
{PRIVACYMESSAGE} |
privacy.pstpl |
The privacy message is shown if you set your survey to be anonymous. The text can be edited/translated in the language files. This can also be changed manually by editing the privacy.pstpl template you wish to use. |
{TEMPLATEURL} |
All Files |
The URL to the current template location (useful for referencing image files in your template) |
{SUBMITCOMPLETE} |
endpage.pstpl |
The statement (from the language files) that tells the user they have completed the survey, and to press the "Submit" button |
{SUBMITREVIEW} |
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:FIRSTNAME} |
All Files |
*If survey answers are NOT ANONYMOUS - gets replaced with the users first name from the tokens table |
{TOKEN:LASTNAME} |
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:ATTRIBUTE_1} |
All Files |
If survey answers are NOT ANONYMOUS - gets replaced with the users attribute_1 from the tokens table |
{TOKEN:ATTRIBUTE_2} |
All Files |
If survey answers are NOT ANONYMOUS - gets replaced with the users attribute_2 from the tokens table |
{ANSWERSCLEARED} |
Preferably in navigator.pstpl |
The "Answers Cleared" statement from the language files |
{RESTART} |
clearall.pstpl |
URL to restart the survey |
{CLOSEWINDOW} |
All Files (Preferably in navigator.pstpl) |
URL to close current window |
{REGISTERERROR} |
register.pstpl |
Shows any error messages in the register page (ie: "You must include an email address") |
{REGISTERMESSAGE1} |
register.pstpl |
The statement "You must be registered to complete this survey" from the language files |
{REGISTERMESSAGE2} |
register.pstpl |
Details about registering from the language files |
{REGISTERFORM} |
register.pstpl |
The actual form for registering, will change depending on whether the attribute_1 and attribute_2 fields are set. |
{SAVE} |
Works suitable on navigator.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 deactivated in the survey properties the tag will not be shown and ignored. |
{LANGUAGECHANGER} |
survey.pstpl |
Displays a switch in multilingual surveys to change the question. |
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by Lukas238