How to rotate a list of names in the text of a question
The attached spec ROTATE_TEXT.QPXshows how to rotate a list of names in the text of a question.
Rotate the Generate,Add_Code questions of each response code into a Field,Use_Previous_Answer question and then use the # to show the answers on the screen in the order that they were generated.
NOTE: This question with the name list MUST be a FIELD and cannot be a CATEGORY.
>PurgeSame~Prepare Compile -Specs[Rotate_text] {!Rotate,Scramble }>Rep $A=1,...,3{!Generate,Add_Code,List,$A }>EndRep{!EndRotate }{ List:!Field,use_previous_answer,31 Black2 Brown3 Green }{ Choose:Of these 3 candidates, #(list,1,1), #(list,2,1), or #(list,3,1) which would you vote for?!field1 Black2 Brown3 Green4 Someone else7 Wouldn't vote8 Not sure9 Refused } ~End