Here is what I need done:
//Page IDs to be randomly hidden go here. Make sure they are comma separated, no spaces, and inside quotes.
%%pagesHideRan = “5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29" ;
//Number of pages you want shown from the list above. No quotes or commas are needed.
%%shown = 3;
//Pop out the three randomized pages.
%%arr = sgapiExplode(',',%%pagesHideRan);
foreach(%%arr as %%page)
for (%%i=0; %%i<%%shown; %%i++)
What I need to do is to ensure that the random three pages does not include any two products from the same group classification. The following are the seven groups and the two product survey pages for each product.
Group A Pages 6 and 7
Group B Pages 8 and 9
Group C Pages 10 and 11
Group D Pages 14 and 15
Group E Pages 16 and 17
Group F Pages 18 and 19
Group G Pages 23 and 24
In my prior platform I would do this via java script using script that is summarized in the attached note.
17 freelancers are bidding on average $346 for this job
hi we could do it perfectly with accuracy, please let us know if you want to clarify in details.. if you want us to share our skill and previous work please initiate the chat by replying..
Hi, just o clarify: you need the script that shows 3 (can be changed) random pages that are not from the same group, right? if so I can proceed immediately, thanks
Hi. I have already finish the script check my demo page [login to view URL] populate it with the value and check if it works the way you want. Actually the script is just a few lines