Using Google App Scrips to produce Input Messages -


i want have set-up our gaming community out. have idea if put value cell on google spreadsheet, give client-side pop-up box saying something.

now in current spreadsheet use can see here: "https://docs.google.com/spreadsheets/d/1qbvvqkkmlj3ro2uhamqm2yulmj8tg38p5ke3yie-fwi/edit#gid=1161230471". have data validation under course section. essentially, want happen when person selects value drop down list, put pop-up box on screen explaining key information course.

is possible?

shaun.

here how it. add many "else if" functions want. formatted in easy edit

function onedit(e) {   var cell = e.range;   var cellcolumn = cell.getcolumn();   var cellsheet = cell.getsheet().getname();   var cellvalue = e.value;   var sheet = "system_info";   //this here ignore system info sheet    if (cellsheet !== sheet && cellcolumn === 4) {     if (cellvalue === "pt1 - induction training") {       browser.msgbox("this training course. (put message text here)");  //add course name , message want popup. course name should same in list (case sensitive)     }       else if (cellvalue === "course 2 name") {       browser.msgbox("pop-up box message");  //// add many "else if" conditions want"     } else if (cellvalue === "course 3 name") {       browser.msgbox("pop-up box message");        } else if (cellvalue === "course 4 name") {       browser.msgbox("pop-up box message");        } else if (cellvalue === "course 5 name") {       browser.msgbox("pop-up box message");        } else if (cellvalue === "course 6 name") {       browser.msgbox("pop-up box message");        } else if (cellvalue === "course 7 name") {       browser.msgbox("pop-up box message");        } else if (cellvalue === "course 8 name") {       browser.msgbox("pop-up box message");        } else if (cellvalue === "course 9 name") {       browser.msgbox("pop-up box message");        } else if (cellvalue === "course 10 name") {       browser.msgbox("pop-up box message");        }        else if (cellvalue === undefined) {  }     else {       browser.msgbox("please choose valid course lsit");   //this in case put wrong course name     }   } } 

update: if want on multiple columns, change

if (cellsheet !== sheet && cellcolumn === 4) { 

to

if (cellsheet !== sheet){   if {cellcolumn === 4 || cellcolumn === 5) {     //the rest of code   } } 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -