ieturk icon indicating copy to clipboard operation
ieturk copied to clipboard

MTurk error

Open amrapalijz opened this issue 6 years ago • 7 comments

When I paste the contents of annotation, config, annotate, style files in the Design Layout of MTurk, I get this error Layout does not contain any fields that include a name attribute. Please include at least one field with the name attribute (input, select or textarea) that will appear in your results.

amrapalijz avatar Sep 10 '19 14:09 amrapalijz

Sorry for the delay. It seems like Mturk has added this check recently. Can you try adding a dummy field like <input name="dummy" style="visibility:hidden"/> somewhere in the HTML. It worked for me.

Varal7 avatar Sep 19 '19 05:09 Varal7

Thanks for your reply. I added this field and I don't get the error. But, now when I uploaded a file with descriptions (the one in your example https://raw.githubusercontent.com/Varal7/ieturk/master/example/output.csv), it doesn't render it correctly. Please see attached screenshot. I am testing it on MTurk Requester Sandbox. I pasted the contents of annotate.html, config.js, annotate.js and the CSS file style.css into the Design layout. Am I missing anything? Screenshot 2019-09-19 at 08 17 45

amrapalijz avatar Sep 19 '19 06:09 amrapalijz

This doesn't look good, indeed. I will try to fix it next week. In the meantime, you can use the code here, from an earlier version of the repo: https://gist.github.com/Varal7/01a241ec7aeab942f91287f697429d70

I have just tried on sandbox and it looks fine with input.csv (make sure you are using input.csv)

Varal7 avatar Sep 19 '19 06:09 Varal7

Perfect, the old code worked ! Thanks.

amrapalijz avatar Sep 19 '19 07:09 amrapalijz

thanks for making this public @Varal7 . It's really cool. Did you ever finish to fix this? Or the only way to go is to use the old code?

marcglobality avatar Feb 11 '21 02:02 marcglobality

This is a nice utility @Varal7. I had the same issue as the original poster with the most recent code. I am able to use the earlier version you posted. Let us know if you plan to update the code with the fix.

adwaitratnaparkhi avatar Apr 27 '22 22:04 adwaitratnaparkhi

I don't have immediate plans to update the codebase. I might do a big refactor over the summer.

Varal7 avatar May 27 '22 23:05 Varal7