SOLVED

Re: Randomizing Form Selection Order

Go to solution
cookiemonstersa
Level 4

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!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Randomizing Form Selection Order

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.

View solution in original post

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Randomizing Form Selection Order

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.

cookiemonstersa
Level 4

Re: Randomizing Form Selection Order

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 - Community Moderator

Re: Randomizing Form Selection Order

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

cookiemonstersa
Level 4

Re: Randomizing Form Selection Order

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

SanfordWhiteman
Level 10 - Community Moderator

Re: Randomizing Form Selection Order

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.

cookiemonstersa
Level 4

Re: Randomizing Form Selection Order

Incredible. Thank you!