Talking to colleagues at Acquia, one of the reasons that we've sometimes used Survey Monkey as opposed to Webform when administering surveys on our website is that Survey Monkey is perceived to have better support for presenting possible answers in a randomized order (and thereby help avoid bias, etc).

Webform already provides this for the "grid" component (which is probably the most useful one), but seems like it would be pretty useful to provide it for the "select" component also?

So, I whipped up a patch to do this (attached). It really scares me how easy this patch was to write, which suggests that there's probably some kind of really obvious problem that I'm not thinking of, but anyway, it seems to work :)

Comments

quicksketch’s picture

Thanks, this looks great! Seems like I caused a stir over there. ;-)

It really scares me how easy this patch was to write, which suggests that there's probably some kind of really obvious problem that I'm not thinking of

I'd say one of Webform's faults is how ridiculously simple its APIs are (or lack of APIs really), but it has the benefit that it's easy to grasp. It doesn't look like you missed anything at first glance. I'll give this a full review when I get the chance.

David_Rothstein’s picture

StatusFileSize
new5.11 KB

Cool :)

I did notice one minor thing which was that I forgot to update the PHP docblock for one of the functions that changed. This is fixed in the attached patch (no changes to the actual code).

Thanks!

quicksketch’s picture

Version: 6.x-2.x-dev »

Moving to the 3.x version for review.

quicksketch’s picture

Status: Needs review » Fixed
StatusFileSize
new2.81 KB

Committed attached patch to the 3.x version. Thanks David, sorry this took so long. :-/

roball’s picture

I already make use of this useful new 3.x feature. Working fine!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.