Skip to main content
Zamwize
Level 2
Aug 3, 2021 6:09 PM UTC
Solved

Randomize Response Order in Surveys

When creating a Survey, is it possible to have the Response options of a multiple choice question present in a random order?

 

Example Question = What is your favorite flavor of ice cream?

Recipient 1 sees the options below:

A. Chocolate

B. Vanilla

C. Coffee

D. Mint

Recipient 2 sees the same options in a different order:

A. Vanilla

B. Mint

C. Coffee

D. Chocolate

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Marcel_Szimonisz
Marcel_SzimoniszAccepted solution
Community Advisor
Aug 9, 2021 12:06 PM UTC

Hello @zamwize 

 

you will have to implement shuffle method and then 

  • if you use page (v5 compatibility) activity - shuffle generated html parts
  • if you are not using page (v5 compatibility) HINT: add all inputs you want to display set them as you want and then take a look how the variables are set for each input type in the generated html a try to recreate your own form with submission handling in Page activity 

 

 

<input id="vars_var1_411041886" class="radiolist" name="vars_var1" type="radio" onclick="document.controller.setValue('/ctx/vars/var1', this.checked ? 'm' : '', 'vars_var1_411041886');" value="m" style="">

 

 

  Marcel

3 replies

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
Aug 9, 2021 12:06 PM UTC

Hello @zamwize 

 

you will have to implement shuffle method and then 

  • if you use page (v5 compatibility) activity - shuffle generated html parts
  • if you are not using page (v5 compatibility) HINT: add all inputs you want to display set them as you want and then take a look how the variables are set for each input type in the generated html a try to recreate your own form with submission handling in Page activity 

 

 

<input id="vars_var1_411041886" class="radiolist" name="vars_var1" type="radio" onclick="document.controller.setValue('/ctx/vars/var1', this.checked ? 'm' : '', 'vars_var1_411041886');" value="m" style="">

 

 

  Marcel

Translate
Zamwize
ZamwizeAuthor
Level 2
Sep 3, 2021 3:16 PM UTC

Thank you for the suggestion!

 

I am using the Page (v5 compatibility) activity. Are you able to provide a quick step by step to shuffle generated html parts? Again, I'm only looking to shuffle the choices within a multiple choice selection, not randomizing the questions themselves.

Translate
Sukrity_Wadhwa
Level 4
Aug 18, 2021 7:10 AM UTC

Hi @zamwize,

 

Was the given solution helpful to resolve your query or do you still need more help here? Do let us know.

 

Thanks!

Translate
Sukrity Wadhwa