Note that this code does not prevent ineligible Workers from submitting a HIT; it simply gives them the opportunity to check their eligibility. However, I've found that very few Workers risk their approval ratings on a HIT they know they aren't qualified to submit.
Here's an example of a Worker ID Checker:
- Have you ever completed one of my HITs? Enter your Worker ID in the box below to find out. Do not include spaces.
To include a Worker ID Check in your HIT, do the following:
- Create a list of Worker IDs that are not eligible to complete the HIT.
- Copy and paste the code below in MTurk's Design Layout.
- Edit the highlighted areas with information that is relevant to your study, including Workers IDs and instructions.
- Preview your HIT, and test your code to make sure its working.
<script
language="javascript">
function check() {
var answer=document.getElementById('answer');
var idcheck=document.getElementById('idcheck').value;
idcheck=idcheck.toUpperCase();
if (idcheck=="WorkerID1" ||
idcheck=="WorkerID2" ||
idcheck=="WorkerID3")
{
answer.innerHTML='You have already completed this survey, and you are
ineligible to complete it again. Please return the HIT.';
}
else
{
answer.innerHTML='You
have NOT completed this survey. Please continue.';
}
}
</script>
<div style="margin-left:20%;margin-right:20%;">
<p style="text-align: center;"><input
type="text" name="idcheck" id="idcheck"
/></p>
<p style="text-align: center;"><input
type="button" onclick="check();" value="Enter Worker
ID & Check Eligibility" /></p>
</div>
<div
style="font-weight:bold;font-family:sans-serif;text-align:center;color:red;"
id="answer"> </div>
No comments:
Post a Comment