Randomizing Form Selection Order | Community
Skip to main content
Level 4
June 16, 2022
Solved

Randomizing Form Selection Order

  • June 16, 2022
  • 1 reply
  • 3385 views

I am trying to create an unsubscribe form that has various values for the reason someone is unsubscribing. 
For example:
• ​I no longer want to receive these emails
• ​The emails are too frequent
• ​I never signed up for this mailing list
• ​The emails are inappropriate
• ​The emails are spam and should be reported
• ​Other (Fill in reason below)

 

Is there any way I can randomize the order the above values appear for each new user so that people do not just choose the first option? Thanks!

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 SanfordWhiteman

Hey Sanford,

Thanks for the help here! 
Here is a rough LP: REMOVED 

There is only one field in use for all the values here. Please let me know if I need to create a new field for each unsubscribe reason in order for randomization to work. 

Best,
NS


A single Checkboxes field was the appropriate choice.

 

Code is here:

MktoForms2 :: Shuffle checkboxes

 

Will be making this into a blog post soon, should be useful to others.

1 reply

SanfordWhiteman
Level 10
June 16, 2022

Is this a Marketo Checkboxes set or a Radio button set?

 

Also, I assume you don’t actually want to randomize the position of “Other.” So please describe the exact functionality you wish to offer.

user81844Author
Level 4
June 16, 2022

Hey Sanford! 

Ideally "other" would stay at the bottom, but the ones above would be able to be randomized. These would be checkboxes, so multiple selections would be allowed! 

SanfordWhiteman
Level 10
June 16, 2022

OK, please create the form and link to your page. Then I can show you the JS necessary to randomize the order.