Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!
SOLVED

Randomize Response Order in Surveys

Avatar

Level 2

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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

Avatar

Level 2

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.

Avatar

Administrator

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