0

我用js提交给MTurk,MTurk提交了assignmentId和feedback input。代码:

 const urlParams = new URLSearchParams(window.location.search);

                      // create the form element and point it to the correct endpoint
                      const form = document.createElement("form");
                      form.action = new URL(
                        "mturk/externalSubmit",
                        urlParams.get("turkSubmitTo")
                      ).href;
                      form.method = "post";

                      // attach the assignmentId
                      const inputAssignmentId = document.createElement("input");
                      inputAssignmentId.name = "assignmentId";
                      inputAssignmentId.value = urlParams.get("assignmentId");
                      inputAssignmentId.hidden = true;
                      form.appendChild(inputAssignmentId);

                      // need one additional field asside from assignmentId
                      const inputCoordinates = document.createElement("input");
                      inputCoordinates.name = "feedback";
                      inputCoordinates.value = text;
                      inputCoordinates.hidden = true;
                      form.appendChild(inputCoordinates);

                      // attach the form to the HTML document and trigger submission
                      document.body.appendChild(form);
                      form.submit();

但是如何在 Sandbox 中找到提交的信息呢?我可以在我的工作人员仪表板(沙箱)中看到已完成的 HIT,但我没有看到我刚刚提交的反馈文本。

谢谢!

4

0 回答 0