forked from benlcollins/introductionToAppsScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path022_IntroToAppsScript_Project3.js
More file actions
34 lines (27 loc) · 913 Bytes
/
Copy path022_IntroToAppsScript_Project3.js
File metadata and controls
34 lines (27 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
*
* Introduction To Apps Script
* Project: Coding Questionnaire
*
*/
// Project Lesson 1: Intro
// There is no code for this lesson
// Project Lesson 2: Setup Google Form & global variables
// switch for your own Google Form ID
// get from URL (X's in following example)
// https://docs.google.com/forms/d/XXXXXXXXXXXXXXXXXXXXXXXXX/edit
const FORM_ID = 'XXXXXXXXXXXXXXXXXXXXXXXXX'; // <-- put your Form ID in here
// Project Lesson 3
// function to find the Form IDs
function findFormIDs() {
const form = FormApp.openById(FORM_ID);
const formItems = form.getItems();
formItems.forEach(item => console.log(item.getTitle() + ' ' + item.getId()));
}
/*
1:32:41 PM Notice Execution started
1:32:42 PM Info Name: 2120132702
1:32:42 PM Info Do you have prior coding experience? 267233812
1:32:42 PM Info What programming languages do you use? 1860180947
1:32:42 PM Notice Execution completed
*/