Hi Guys,
Following is my code working fine if the questions are less than 50.
I need help trying to get more than 50 question coming from include. “questionLink”
Please help
$w.onReady( function () {
let pat = wixLocation.path[wixLocation.path.length- 1 ];
wixData.query( "surveyQuestionaire" )
.include( "questionLink" )
.eq( "category" , pat)
.find()
.then( (results) => {
console.log(results)
if (results.items.length > 0 ) {
var questions = results.items[ 0 ].questionLink;
var group1 = [];
var group2 = [];
var group3 = [];
for ( var i = 0 ; i < questions.length; i++)
{
if (questions[i].group === “Group1” )
{
group1.push(questions[i])
}
if (questions[i].group === “Group2” )
{
group2.push(questions[i])
}
if (questions[i].group === “Group3” )
{
group3.push(questions[i])
}
}
} **else** {
}
} )
. **catch** ( (err) => {
**let** errorMsg = err;
} );