From 418bfce557b747fe54f65e575530475adb4c55d6 Mon Sep 17 00:00:00 2001 From: jssharma Date: Fri, 8 May 2026 12:10:23 -0400 Subject: [PATCH] Update Code.js Fixed the id in sendInvites_ and equals logic in onFormSubmit() (object couldn't match string) --- solutions/automations/event-session-signup/Code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/automations/event-session-signup/Code.js b/solutions/automations/event-session-signup/Code.js index ffaaa28ef..de12db9fc 100644 --- a/solutions/automations/event-session-signup/Code.js +++ b/solutions/automations/event-session-signup/Code.js @@ -163,7 +163,7 @@ function onFormSubmit(e) { // For every selection in the response, find the matching timeslot and title // in the spreadsheet and add the session data to the response array. - if (e.namedValues[timeslot] && e.namedValues[timeslot] === title) { + if (e.namedValues[timeslot] && e.namedValues[timeslot] == title) { //FIXED response.push(session); } } @@ -177,7 +177,7 @@ function onFormSubmit(e) { * @param {Array} response An array of data for the user's session choices. */ function sendInvites_(user, response) { - const id = ScriptProperties.getProperty("calId"); + const id = PropertiesService.getScriptProperties().getProperty("calId"); //FIXED const cal = CalendarApp.getCalendarById(id); for (let i = 0; i < response.length; i++) { cal.getEventSeriesById(response[i][5]).addGuest(user.email);