0

I am designing a survey in XLSForm, not in Excel. I need to randomize not only the order of choices, but also the text of the questions. Some questions are made of four sentences A, B, C and D. I need them displayed in random order.

I thought of using a calculate field with a random number. But there are 24 combinations for 4 sentences and I cannot possibly make that many fields.

David García Bodego
  • 1,058
  • 3
  • 13
  • 21
Vlad Gheorghe
  • 470
  • 2
  • 17

1 Answers1

0

I think the following approach might work.

  1. Use question type xml-external to add an external data XML file with your 4 texts in different nodes. Call this 'mytexts' eg. The structure could be something like this:
<root>
 <text>first text</text>
 <text>second text</text>
 <text>third text</text>
 <text>fourth text</text>
</root>
  1. In the label of your question use join(" ", randomize(instance('mytexts')/root/text))
Martijn van de Rijdt
  • 1,020
  • 3
  • 10
  • 16