Here is how you do it. Add as many "else if" functions as you want. I formatted it in the it would be easy for you to 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 is here to ignore the System info sheet
if (cellSheet !== sheet && cellColumn === 4) {
if (cellValue === "PT1 - Induction Training") {
Browser.msgBox("This is a training course. (put your message text here)"); //Add the course name and the message that you want to popup. Course name should be exactly the same as in the list (case sensitive)
}
else if (cellValue === "Course 2 name") {
Browser.msgBox("Pop-up box message"); //// add as many "else if" conditions as you 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 a valid course from the lsit"); //This is in case they put a wrong course name
}
}
}
UPDATE:
If you want to do this on multiple columns, change
if (cellSheet !== sheet && cellColumn === 4) {
To
if (cellSheet !== sheet){
if {cellColumn === 4 || cellColumn === 5) {
//the rest of your code
}
}