CrowdFlower:如果有逻辑的话



我正试图使用他们的CML语言在CrowdFlower中设置一个任务。我不断地用only-if逻辑得到以下错误。

contains only-if logic that references a missing field

这就是代码。

<cml:radios label="Is there any spoken text in the first audio or is the audio file empty?" class="" validates="required" instructions="Press the play button to play the audio in the above audio file. If you can't hear any audio please select the second option.">
<cml:radios label="Which option do you believe best answers the question" class="unmodified" only-if="is_there_any_spoken_text_in_the_first_audio_or_is_the_audio_file_empty?:[0]" validates="required"><cml:radio label="First option"/><cml:radio label="Second option"/><cml:radio label="Third option"/><cml:radio label="I would like to hear more options"/></cml:radios>

我在他们的文档中到处找过,但似乎没有什么帮助。

事实证明CML不喜欢quesionmarks("?")。我在我的标签中使用了它

<cml:radios label="Is there any spoken text in the first audio or is the audio file empty?" class="" validates="required" instructions="Press the play button to play the audio in the above audio file. If you can't hear any audio please select the second option.">

一旦我删除了它,就没有任何错误。

希望这能帮助到别人。

相关内容

最新更新