2014-04-19 3 views
0

Я пытаюсь настроить задачу в CrowdFlower, используя их язык CML. Я продолжаю получать следующую ошибку с единственной логикой if.CrowdFlower: if-ony logic

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> 

Я искал всюду в своей документации, но ничего не кажется полезным.

ответ

0

Оказывается, что 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."> 

После того, как я удалил его, ошибки не было.

Надеюсь, это поможет кому-то.