ianhussey / MTurk2Limesurvey

Pass a Mechanical Turk workerID to prefill a limesurvey answer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MTurk2Limesurvey

Description

When I went to set up a study using MTurk and Limesurvey I didn't immediately find a solution to pass a workerID from Mechanical Turk to prefill an answer in a Limesurvey question. This is useful to do in order to only pay those who completed the task appropriately.

A solution for surveys hosted on Qualtrix can be found here. The current code adapts this to work with Limesurvey. NB the question can be set to invisible in Limesurvey so that the participant cannot change the captured workerID.

This code passes html5 validation using https://validator.w3.org, and as such can generate an AMT Layout ID.

Usage

This code should be placed in the AMT requester web interface under Create>Edit project>Design layout>Source.

The location of your specific limesurvey installation and the question that is to be prefilled must be specified. Limesurvey answer prefill URLs take the format https://www.example.com/index.php/survey/index/sid/STUDY_ID_HERE]/newtest/Y?[STUDY_ID_HERE]X[QUESTION_GROUP_ID_HERE]X[QUESTION_ID_HERE]=gelb&[STUDY_ID_HERE]X[QUESTION_GROUP_ID_HERE]X[QUESTION_ID_HERE]=[PREFILLED_ANSWER_HERE]

The generated HIT page is extremely simple:

alt text

About

Pass a Mechanical Turk workerID to prefill a limesurvey answer


Languages

Language:HTML 100.0%