מדריך למתחילים בנושא התוסף של Google Forms Editor
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
במדריך הזה ליצירת תוסף ראשון, ניצור תוסף לעורך של Google Forms שמשתמש בטריגרים כדי לשלוח אימייל כשמשתמש מגיב לטופס.
מטרות
- מגדירים את הסקריפט.
- מריצים את הסקריפט.
דרישות מוקדמות
כדי להשתמש בדוגמה הזו, צריך לעמוד בדרישות המוקדמות הבאות:
- חשבון Google (יכול להיות שחשבונות Google Workspace ידרשו אישור אדמין).
- דפדפן אינטרנט עם גישה לאינטרנט.
הגדרת הסקריפט
- יוצרים טופס ב-Google Forms בכתובת forms.new.
- לוחצים על סמל האפשרויות הנוספות more_vert
> עורך קובצי סקריפט.
- לוחצים על פרויקט ללא שם.
- משנים את השם של פרויקט Apps Script ל-Forms notifications (התראות ב-Forms) ולוחצים על Rename (שינוי שם).
- לוחצים על סמל הוספת קובץ add
> HTML. נותנים לקובץ את השם
sidebar
.
- חוזרים על שלב 5 כדי ליצור עוד 4 קובצי HTML בשמות
about
,
authorizationEmail
, creatorNotification
ו-respondentNotification
.
בסיום התהליך אמור להיות לכם קובץ סקריפט אחד ו-5 קובצי HTML.
מחליפים את התוכן של כל קובץ בקוד המתאים הבא, ואז לוחצים על סמל השמירה
.
respondentNotification.html
הפעלת הסקריפט
- חוזרים לטופס ומרעננים את הדף.
- מוסיפים לטופס שאלה עם תשובה קצרה. בשדה שאלה ללא שם, מזינים כתובת אימייל. אפשר גם ליצור שאלות אחרות בטופס.
- לוחצים על סמל התוספים extension
> Form notifications (התראות על טופס). יכול להיות שיחלפו כמה שניות עד שהתוספים extension יופיעו.
- בתיבת הדו-שיח, לוחצים על הגדרת התראות.
- כשמוצגת בקשה, מאשרים את התוסף.
- שוב, לוחצים על סמלי התוספים extension
> התראות בטופס
> הגדרת התראות.
- בתוסף, מסמנים את התיבה Notify me ומזינים את כתובת האימייל.
- בשדה שליחת התראות אחרי כל, מזינים 1.
- לוחצים על שמירה.
- כדי לשלוח תגובה, לוחצים על סמל התצוגה המקדימה visibility
- ממלאים את הטופס ולוחצים על שליחה.
- כדאי לבדוק אם קיבלת התראה באימייל.
השלבים הבאים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eThis Google Forms add-on automates email notifications to form creators and/or respondents upon submission.\u003c/p\u003e\n"],["\u003cp\u003eCustomizable settings allow control over notification frequency, recipient emails, and content.\u003c/p\u003e\n"],["\u003cp\u003eThe add-on utilizes Google Apps Script triggers to execute functions when the form is opened, installed, or submitted.\u003c/p\u003e\n"],["\u003cp\u003eUsers configure notification preferences through a sidebar accessible within the Google Form.\u003c/p\u003e\n"],["\u003cp\u003eThe script manages authorization to access Google services for sending emails and interacting with form data.\u003c/p\u003e\n"]]],["This Google Forms add-on automates email notifications upon form submissions. It notifies the form creator when a set number of responses are received and sends a custom message to respondents. Users configure notification frequency, recipient emails, and custom messages via a sidebar. The add-on manages authorization, sends re-authorization requests, and respects email quotas. Key actions include saving settings, managing triggers, handling form submissions, sending notifications, and validating user inputs. The code structure comprises the script (`code.gs`) and the HTML code (`sidebar.html`, `about.html`, `authorizationEmail.html`, `creatorNotification.html`, `respondentNotification.html`).\n"],null,[]]