Skip to main content
Level 4
Jun 16, 2022 1:38 PM UTC
Solved

Randomizing Form Selection Order

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Jun 16, 2022 8:52 PM UTC

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.

6 replies

SanfordWhiteman
User Group Leader
User Group Leader
Jun 16, 2022 2:03 PM UTC

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.

Translate
user81844Author
Level 4
Jun 16, 2022 2:05 PM UTC

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! 

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Jun 16, 2022 2:20 PM UTC

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

Translate