Reply To: Logging randomly generated IDs for MTurkers

PennController for IBEX Forums Support Logging randomly generated IDs for MTurkers Reply To: Logging randomly generated IDs for MTurkers

#9896
JunLyu
Participant

Hi Jeremy,

Yes, here is the html code.

<script language="javascript" type="text/javascript">
function randomString() {
	var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
	var string_length = 8;
	var randomstring = '';
	for (var i=0; i<string_length; i++) {
		var rnum = Math.floor(Math.random() * chars.length);
		randomstring += chars.substring(rnum,rnum+1);
	}
	document.randform.randomfield.value = randomstring;
}
</script>

<h3> Participant ID: </h3> We require you to generate a unique identifier so that we can match your reading experiment answers to the questionnaire.<br>

<br>

<table>

<tr>
  <td colspan="1"> <b> 1. Click on the following button to create your unique identifier. </b> </td>
 </tr>

<tr>
<td>
<form name="randform">
<input type="button" value="Create unique identifier" onClick="randomString();">&nbsp;
<input type="text" name="randomfield" value="">
</form>

</td>
</tr>

<tr>
	<td> <b>2. Copy and paste the identifier above into the box below: </b> </td>
</tr>
<tr>
  <td colspan="1"> 
    <textarea name="identifier" rows="1" cols="8" class="obligatory"></textarea>
  </td>
</tr>
</table>

<tr>
	<td> <b>3. Also copy and paste the identifier above into the "Participant ID" box on Qualtrics (the questionnaire that you opened): </b> </td>
</tr>

I have copied my project. Here’s the link to the project copy:

https://farm.pcibex.net/r/dmGVab/

Jun