Mobile SDK > Disconnected mobile application reference > SurveyQuestionXMLMDSC reference > SurveyQuestionXMLMDSC examples > Loop iteration validation example
 
Loop iteration validation example
This example shows a numeric loop where the iterations are specified using a range. The example also shows how the range is specified for validation.
Metadata script
Loop1 "Please list the names of the people in the household" loop [1..3, 6..10] fields
(
  SubQ text[1..10];
) expand;
Rendered
XML
<Question QuestionFullName="Loop1" QuestionType="LoopNumeric" Iterations="[1..3,6..10]">
  <Question QuestionName="SubQ" QuestionFullName="Loop1.SubQ" QuestionDataType="Text">
    <Validation MinValue="1" MaxValue="10"/>
  </Question>
</Question>
See also
SurveyQuestionXMLMDSC examples