假设我想在多选屏幕(类型 = 4)中验证至少选择了一个复选框。如何在以下示例中定义相关验证的条件?
<question title="Preferrable Colors" type="4" key="#1">
<answer nextQuestionKey="END" key="#1_1" position="0">
<text>Pink</text>
</answer>
<answer nextQuestionKey="END" key="#1_2" position="1">
<text>Red</text>
</answer>
<answer nextQuestionKey="END" key="#1_3" position="2">
<text>Violet</text>
</answer>
<text>Select the colors you prefer </text>
<validation type="ERROR">
<condition>true</condition>
<text>Sorry, you have to select at least one color</text>
</validation>
</question>