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.
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.
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.
BIG GIANT DISCLAIMER:
$('form.idealien_randomizer .gquiz-field ul').each(function(){
// get current ul
var $ul = $(this);
// get array of list items in current ul
var $liArr = $ul.children('li');
if ($liArr.length > "2") {
// 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>5 ? 1 : -1;
// Return -1, 0, or +1
return( isOddOrEven*isPosOrNeg );
})
// append list items to ul
.appendTo($ul);
}
});
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.