Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Randomize Response Order in Surveys

Zamwize
Level 1
Level 1

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

1 Accepted Solution
Marcel_Szimonisz
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

3 Replies
Marcel_Szimonisz
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

Zamwize
Level 1
Level 1

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
Employee
Employee

Hi @Zamwize,

 

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

 

Thanks!