Отсутствует ; до выписки (Google Cal для Google Form)

0

Я получаю сообщение об ошибке "Missing; before statement. (строка 2, файл" Код ")". Я не программист, но я нашел код, который дает мне возможность встроить G Cal в G Form. Итак, будьте осторожны :)

ожидаемая благодарность!

//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 = [email protected];
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;
  • 0
    Должно быть строка.
  • 1
    Эти номера строк в реальном коде ? Если это так, удалите их.
Показать ещё 1 комментарий
Теги:

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 = "[email protected]";
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;
  • 0
    да ... цитаты были проблемой! Большое спасибо!!
  • 0
    Пожалуйста :)
0

Строковые (нечисловые) значения должны быть заключены в кавычки...

var calendarId = "[email protected]";

Также посмотрите, что сказал Борис Спайдер (интересное имя пользователя :) в комментариях к номерам строк.

Ещё вопросы

Сообщество Overcoder
Наверх
Меню