我正在尝试使用Google表单让客户填写餐饮活动详情。无论是谁填写表格,它总是显示“创建者:catering@haleyhouse.org”。我想知道是否有任何改变,以显示填写表格的人的电子邮件地址?
这是我用来从onFormSubmit()
创建事件的代码//rename data into useable tags
timestamp = newRequest[0][0],
company = newRequest[0][1],
contact_name = newRequest[0][2],
contact_email = newRequest[0][3],
contact_phone = newRequest[0][4],
onsite_name = newRequest[0][5],
onsite_phone = newRequest[0][6],
pickup_delivery = newRequest[0][7],
day = newRequest[0][8],
address = newRequest[0][9],
location = newRequest[0][10],
parking = newRequest[0][11],
guests = newRequest[0][12],
other = newRequest[0][13],
time = newRequest[0][14];
date = newRequest[0][15]
papergoods = newRequest[0][16]
//create new calendar event
var dateString = date.toDateString();
var timeString = time.getHours() + ":" + time.getMinutes();
var endtimeString = (time.getHours() + 1) + ":" + time.getMinutes();
var timestampFormat = Utilities.formatDate(new Date(timestamp), Session.getScriptTimeZone(), 'M/d/yyyy hh:mm aaa');
var calendar = CalendarApp.getCalendarById('haleyhouse.org_1oicreouarl3je785ltupuoppg@group.calendar.google.com');
var event = calendar.createEvent(contact_name + ", " + company + ", " + contact_phone,
new Date(dateString + " " + timeString),
new Date(dateString + " " + endtimeString),
{description: timestampFormat + " received form request - google", location: address});
无论如何要更改此内容,还是默认情况下始终是日历所有者的电子邮件地址?