0

「Missing ; before statement. (line 2, file "Code")」というエラーが表示されます。私はプログラマーではありませんが、G Form に G Cal を埋め込むことができるコードを見つけました。だから、優しくしてください:)

ありがとう!

//this is the ID of the calendar to add the event to, this is found on the calendar settings page of the calendar in question
02  var calendarId = XXXXXXXXXXXX@group.calendar.google.com;
03   
04  //below are the column ids of that represents the values used in the spreadsheet (these are non zero indexed)
05  var startDtId = 4;
06  var endDtId = 5;
07  var titleId = 3;
08  var descId = 2;
09  var formTimeStampId = 1;
4

2 に答える 2

1
//this is the ID of the calendar to add the event to, this is found on the calendar            settings page of the calendar in question
02  var calendarId = "XXXXXXXXXXXX@group.calendar.google.com";
03   
04  //below are the column ids of that represents the values used in the spreadsheet (these are non zero indexed)
05  var startDtId = 4;
06  var endDtId = 5;
07  var titleId = 3;
08  var descId = 2;
09  var formTimeStampId = 1;
于 2013-10-04T08:12:13.857 に答える
0

文字列 (非数値) 値は引用符で囲む必要があります...

var calendarId = "XXXXXXXXXXXX@group.calendar.google.com";

また、Boris the Spider (興味深いユーザー名:) が行番号に関する質問のコメントで言ったことを参照してください。

于 2013-10-04T08:10:53.570 に答える