Currently i work on a project of research with google form, i need to randomize my target responses to 4 different group of question, i use google script app to create a link that randomize which group of question that my responses have to fill.
It work perfectly on desktop, but can’t work on mobile devices, on a question with multiple choice i can’t even select the answer.
I code this code from here
Here my code :
function doGet() {
var webpages = [];
webpages.push("google form link 1");
webpages.push("google form link 2");
webpages.push("google form link 3");
webpages.push("google form link 4");
//------------------------------------------
var random_page = Math.floor(Math.random()*webpages.length);
var redirect = webpages[random_page];
return HtmlService.createHtmlOutput("<script>location.href = '" + redirect + "';</script>");
//return HtmlService.createHtmlOutput(UrlFetchApp.fetch(redirect));
}
do i need to change my script to work on mobile devices or there are no option to run this randomizer on mobile?
Find the solution to execute this script on mobile devices