Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Help:LimeSurvey/Demo Psychopy
(view source)
Revision as of 15:04, 1 February 2015
33 bytes added
,
15:04, 1 February 2015
no edit summary
Line 2:
Line 2:
Make sure your survey has a token table which contains the participant ID's:
Make sure your survey has a token table which contains the participant ID's:
+
+
[[File:Token.png|thumbnail]]
+
+
<nowiki>
<nowiki>
participantID = 2
participantID = 2
url = "https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token={:d}".format(participantID)
url = "https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token={:d}".format(participantID)
+
import os
if sys.platform == 'win32':
if sys.platform == 'win32':
−
`
chrome.exe
https://survey.socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token=2
+
# windows has no command to start the default browser, hope this one exists
+
os.system("
chrome.exe
"+url)
else:
else:
−
https://survey
.
socsci.ru.nl/index.php/survey/index/sid/459278/newtest/Y/lang/en?token=2
+
# this always selects the default browser
+
os
.
system("xdg-open "+url)
</nowiki>
</nowiki>
Wilbert.vanham
Administrators
414
edits
Navigation menu
Personal tools
Log in
Namespaces
Help page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version