| If you are looking for the REG form details, click here. |
|---|
Typically you'll need to create the following files:
I'd really encourage you to avoid using things like Word or other WYSIWYG HTML editors - most toss in a lot of extraneous html which can make creating clean HTML problematic. Since most surveys are pretty straightforwrd, stick to Notepad, Wordpad or something which creates clean HTML. NVU is also on all Nexus stations in the department (see the Gotchas below for some settings in NVU you'll want to use).
------------------------cut here---------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <META NAME="ROBOTS" CONTENT="NOINDEX"> <META NAME="ROBOTS" CONTENT="NOFOLLOW"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <title>Survey</title> </head> <BODY bgcolor="#ffffff"> Information stuff would go here... Yada yada yada... <P> <form method="post" action="---CGIFORM---"> <input type="hidden" name="frompage" value="index.html"> <input type="hidden" name="sonaid" value="---SONAID---"> <input type="hidden" name="lastvv" value="0"> <input type="submit" value="Continue"> </form> </body> </html> ------------------------cut here----------------------
Notes:
------------------------cut here---------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <title>Survey</title> </head> <BODY bgcolor="#ffffff"> <form method="post" action="---CGIFORM---"> <input type="hidden" name="frompage" value="consent.html"> <input type="hidden" name="sonaid" value="---SONAID---"> <input type="hidden" name="lastvv" value="1"> Consent details go here... Yada yada yada... <p> I agree to participate in this study: <blockquote> <input type="radio" name="vv0001" value="Accept">Accept<br> <input type="radio" name="vv0001" value="Decline">Decline </blockquote> <p> If you agree to participate, please enter your login information: <blockquote> Userid: <input type="text" name="sid" size="12"> <BR> Password: <input type="password" name="password" size="12"> </blockquote> <blockquote> <input type="submit" value="Submit"> <input type="reset"> </blockquote> </form> </body> </html> ------------------------cut here----------------------
Notes:
------------------------cut here---------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <title>Survey</title> </head> <BODY bgcolor="#ffffff"> You have declined consent... Yada yada yada... <P> Thanks for your time... Yada yada yada... <P> If you have any questions... yada yada yada... <blockquote> Your name <br>Department of Psychology <br> University of Waterloo <br>email and other stuff </blockquote> </body> </html> ------------------------cut here----------------------
Notes:
Below is an example that asks a few questions
------------------------cut here---------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <title>Survey</title> </head> <BODY bgcolor="#ffffff"> <form method="post" action="---CGIFORM---"> <input type="hidden" name="frompage" value="page1.html"> <input type="hidden" name="sid" value="---SID---"> <input type="hidden" name="password" value="---PASSWORD---"> <input type="hidden" name="sonaid" value="---SONAID---"> <input type="hidden" name="condition" value="---CONDITION---"> <input type="hidden" name="lastvv" value="3"> <h2>Survey</h2> <hr> The purpose of this study is to find out what you know about the Three Stooges. <P><HR><P> <OL> <LI> Who's your favourite Stooge? <select name="vv0001"> <option value="">Please Select <option value="1">Mo <option value="2">Larry <option value="3">Curly Joe </select> <LI> Why? <select name="vv0002"> <option value="">Please Select <option value="1">Great personality <option value="2">Nice hair <option value="3">Gluton for punishment </select> <LI> If you were Curly Joe, which would you prefer to have Mo do to you? <select name="vv0003"> <option value="">Please Select <option value="1">Two finger poke in your eyes <option value="2">Stomp on your toes <option value="3">Nose pull and slap </select> </OL> <P><HR><P> <input type="submit" value="Submit"> <input type="reset"> </form> </body> </html> ------------------------cut here----------------------
Notes:
Notes:
------------------------cut here---------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <title>Survey</title> </head> <BODY bgcolor="#ffffff"> Thanks for your time... Yada yada yada... <P> If you have any questions... yada yada yada... <blockquote> Your name <br>Department of Psychology <br> University of Waterloo <br>email and other stuff </blockquote> </body> </html> ------------------------cut here----------------------
Notes:
------------------------cut here---------------------- s0001 Ue6FiyIW s0002 sJU99sbA s0003 8fDT3A8h ...etc ------------------------cut here----------------------
If you need to match MT id#'s to your subject IDs, just add a third field containing the MT id#'s and this will also get saved in with each submitted form:
------------------------cut here---------------------- s0001 Ue6FiyIW f5615 s0002 sJU99sbA f5977 s0003 8fDT3A8h f4635 ...etc ------------------------cut here----------------------
Notes:
cd public_html/mywebstudy
/u/bee/perl/makewebstudy.pland follow the instructions.
/u/bee/perl/makewebstudy.pl -sonastudySubjects will only be able to access the study from the link within SONA and the subjects' SONA ID will be saved along with the data. If you use this option, you don't need the passfile.txt file.
Be sure to backup your files elsewhere first just in case. If errors are returned when the script is run, you'll need to copy your backups in place before running it again.
/u/bee/perl/makewebstudy.pl -noinfopage
This will basically rename consent.html to index.html and make the necessary changes to the file.
Be sure to backup your files elsewhere first just in case. If errors are returned when the script is run, you'll need to copy your backups in place before running it again. I'd probably suggest you get things working without the -noinfopage option first and then use it.
/u/bee/perl/makewebstudy.pl -nologinA userid will be automatically assigned. If you use this option, you don't need the consent.html, declined.html or passfile.txt files.
Be sure to backup your files elsewhere first just in case. If errors are returned when the script is run, you'll need to copy your backups in place before running it again.
on watarts: https://arts.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/mywebstudy.pl?sonaid=%SURVEY_CODE%Just substitute your userid for "myuserid" and your study directory for "mywebstudy".on artsweb: https://artsweb.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/mywebstudy.pl?sonaid=%SURVEY_CODE%
N.B. SONA studies should use the "-sonastudy" option (see above) when running the makewebstudy command.
/u/bee/perl/makerandomurl.pl mixurlsChange the 'mixurls' to whatever you would like to see in your url - this name (eg. mixurls) must be unique for each of your randomized studies. You will then be prompted to enter a list of URL's to chose from, one per line.
One additional gotcha here. In order for the SONA ID#'s to be saved correctly, you'll need to enter the URL's slightly differently than what you are used to. For instance, if one of the study URL's you would like to use in the randomization is something like:
https://arts.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/mywebstudy.pl?sonaid=%SURVEY_CODE%you will instead need to enter:
https://arts.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/mywebstudy.plOnce the URLs have been entered, you can then test the randomization of your study by referring to the program which does the randomization. Continuing the example of using the name 'mixurls', this will be something like:
do NOT enter the "?sonaid=%SURVEY_CODE%" at the end of the URL if you are using SONA.
if not using SONA: https://arts.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/mixurlsJust change "myuserid" to your userid. Again, keep in mind that if you are running different independent studies requiring randomizations, you should specify different names when running the makerandomurl.pl command. If you run with the same name, people going to your 1st study would be redirected to your 2nd study which would be a "BAD THING (TM)".
or: https://artsweb.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/mixurlsif using SONA: https://arts.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/mixurls?sonaid=%SURVEY_CODE%
or: https://artsweb.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/mixurls?sonaid=%SURVEY_CODE%
If you are using SONA, to test things, you can go to your "Study Information" page, click the ""Sample Link with Embedded ID Code]" link and one of your randomly selected URLs should pop up.
---VVSUBSTART---page3.html---12---VVSUBEND---This would substitute in the response for vv0012 from page3.html from the same subject into your text.
For instance, if on page3.html, variable vv0012, you had people answer a question such as, "what is your friend's name?" and based on that answer, you would like the remainder of the questions (on different pages) to include their friend's name? (e.g. if they answered "Jimmy"), then "How old is ---VVSUBSTART---page3.html---12---VVSUBEND---?" would become "How old is Jimmy?"
Just to make things a little easier for me to parse, I only allow one of these per line in your html file.
If you want to use VVSUB, stop by my office.
<IMG src="---BASEURL---/theimage.jpg">which would display the image "theimage.jog" which would obviously need to be copied to your study directory.
If you have a bunch of images, you can organize things a bit better by putting all the images in a separate folder in your study directly called "images" or whatever. If you do this, you'll need to refer to this subdirectory in the URL for the image like so:
<IMG src="---BASEURL---/images/theimage.jpg">As well, depending on how you transfer the image files, you may need to change the permission of the images files to make them readable with the 'chmod' command at the unix prompt, e.g. after cd'ing to the directory where your images are, type something like the following to change the permission of the file to make it world readable:
chmod ugo+r theimage.jpg
https://www.surveymonkey.com/s/XTZSC9Y
When entering it as an external website in SONA, just append ?c=%SURVEY_CODE% at the end, so you'd enter:
https://www.surveymonkey.com/s/XTZSC9Y?c=%SURVEY_CODE%
https://www.surveymonkey.com/s/XTZSC9EThen, take the URL the program generates and append ?GID=%SURVEY_CODE% to the end for the SONA link. So if you are working on artsweb and called your makerandomurl's program "test", the URL would be:
https://www.surveymonkey.com/s/XMGZGGR
https://artsweb.uwaterloo.ca/cgi-bin/cgiwrap/myuserid/test?GID=%SURVEY_CODE%That should automatically pass the ID from SONA, through the randomization program, into SurveyMonkey. In the datafile the SONA ID will be labelled "Custom Field".
Jump to
- beeHive
- UW Psychology
- UWInfo Home Page