<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Randomize order of choices prevents form display on Twenty Eleven theme</title>
		<link>https://legacy.forums.gravityhelp.com/topic/randomize-order-of-choices-prevents-form-display-on-twenty-eleven-theme</link>
		<description>Gravity Support Forums Topic: Randomize order of choices prevents form display on Twenty Eleven theme</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 14:30:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/randomize-order-of-choices-prevents-form-display-on-twenty-eleven-theme" rel="self" type="application/rss+xml" />

		<item>
			<title>Idealien on "Randomize order of choices prevents form display on Twenty Eleven theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/randomize-order-of-choices-prevents-form-display-on-twenty-eleven-theme#post-250888</link>
			<pubDate>Mon, 13 May 2013 13:09:01 +0000</pubDate>
			<dc:creator>Idealien</dc:creator>
			<guid isPermaLink="false">250888@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;An ugly hack via jQuery for those who might encounter this issue and need something in place before the next beta or prod version comes out with a bug fix.&#60;/p&#62;
&#60;p&#62;BIG GIANT DISCLAIMER:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;Change the selector .randomizer to whatever CSS class your form has or be more specific. In my case I already have a lot of questions that adding a class on each question wasn't viable.&#60;/li&#62;
&#60;li&#62;This JS also rules out any questions with only 2 options to leave True/False in original sort order.&#60;/li&#62;
&#60;/ul&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;#39;form.idealien_randomizer .gquiz-field ul&#38;#39;).each(function(){
           // get current ul
           var $ul = $(this);
           // get array of list items in current ul
           var $liArr = $ul.children(&#38;#39;li&#38;#39;);
            if ($liArr.length &#38;gt; &#38;quot;2&#38;quot;) {
           // sort array of list items in current ul randomly
           $liArr.sort(function(a,b){
                 // Get a random number between 0 and 10
                 var temp = parseInt( Math.random()*10 );
                 // Get 1 or 0, whether temp is odd or even
                 var isOddOrEven = temp%2;
                 // Get +1 or -1, whether temp greater or smaller than 5
                 var isPosOrNeg = temp&#38;gt;5 ? 1 : -1;
                 // Return -1, 0, or +1
                 return( isOddOrEven*isPosOrNeg );
           })
           // append list items to ul
           .appendTo($ul);
           }
     });&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;For GF team - Something around lines 557 - 570 of gravityformsquiz/quiz.php appears to be the source of issue based purely on commenting blocks out for basic debug.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Idealien on "Randomize order of choices prevents form display on Twenty Eleven theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/randomize-order-of-choices-prevents-form-display-on-twenty-eleven-theme#post-250838</link>
			<pubDate>Mon, 13 May 2013 12:42:08 +0000</pubDate>
			<dc:creator>Idealien</dc:creator>
			<guid isPermaLink="false">250838@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If I turn this on for any question the entire form does not display on output page. Page title displays but entry-content div is blank.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
