Randomize Response Order in Surveys | Community
Skip to main content
Zamwize
Level 2
August 3, 2021
Solved

Randomize Response Order in Surveys

  • August 3, 2021
  • 2 replies
  • 1266 views

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.
Best answer by Marcel_Szimonisz

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

2 replies

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
August 9, 2021

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

Zamwize
ZamwizeAuthor
Level 2
September 3, 2021

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.

Sukrity_Wadhwa
Community Manager
Community Manager
August 18, 2021

Hi @zamwize,

 

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

 

Thanks!

Sukrity Wadhwa