我已经为我们当地的侦察区创建了一个Google表单,以通知他们将会参加该部分。通知电子邮件一切正常。我想要做的是自动创建一个日历活动,稍后将通过网站分享,以便管理团队可以查看并查看所有球探的位置。
无论如何回到正轨,我到目前为止的领域是:
function CalendarSubmit(e){
var Group = e.values[1];
var ActivityDateStart = e.values[2];
var ActivityTimeStart = e.values[3];
var ActivityDateEnd = e.values[4];
var ActivityTimeEnd = e.values[5];
var Activity = e.values[6];
var Location = e.values[7];
var Description = e.values[8];
var AuthLeader = e.values[9];
var AuthLeaderNo = e.values[10];
var AuthLeaderPermit = e.values[11];
var LeaderCharge = e.values[12];
var LeaderChargeNo = e.values[13];
var LeaderEmail = e.values[14]
var Adults = e.values[15];
var Beavers = e.values[16];
var Cubs = e.values[17];
var Scouts = e.values[18];
var Explorers = e.values[19];
var Other = e.values[20];
var InTouchName = e.values[21];
var InTouchContact = e.values[22];
var ManagerEmail = e.values[23];
var RA = e.values[24];
var Rules = e.values[25];
}
我希望日历标题使用变量标题,其中
var Title = group + " - " + Activity;
开始和结束时间:
var Start = ActivityDateStart + ActivityTimeStart;
var End = ActivityDateEnd + ActivityTimeEnd;
位置:
var LOC = Location
说明
var calDescription = "Location of Activity: " + Activity + " /n" +
"Description of Activity: " + Description + " /n/n" +
"Leader in Charge: " + LeaderCharge + " /n" +
"No. of Adults (18+): " + Adults + " /n" +
"No. of Beavers: " + Beavers + " /n" +
"No. of Cubs: " + Cubs + " /n" +
"No. of Scouts: " + Scouts + " /n" +
"No. of Explorers/Young Leaders: " + Explorers + " /n" +
"No. of Non-Uniformed Young People (Under 18): " + Other;
我遇到的麻烦是我不知道如何将所有上述内容编写到CalendarApp中。