מדריך למתחילים בנושא התוסף של Google Forms Editor
במדריך למתחילים הזה תלמדו איך ליצור תוסף ל-Google Forms Editor שמשתמש בטריגרים כדי לשלוח אימייל כשמשתמש משיב לטופס.
מטרות
- מגדירים את הסקריפט.
- מריצים את הסקריפט.
דרישות מוקדמות
כדי להשתמש בדוגמה הזו, צריך את הדרישות המוקדמות הבאות:
- חשבון Google (יכול להיות שחשבונות Google Workspace ידרשו אישור מהאדמין).
- דפדפן אינטרנט עם גישה לאינטרנט.
הגדרת הסקריפט
- יוצרים טופס ב-Google Forms בכתובת forms.new.
- לוחצים על סמל האפשרויות הנוספות more_vert
> עורך קובצי סקריפט.
- לוחצים על Untitled project.
- משנים את השם של פרויקט Apps Script התראות בטופס ולוחצים על שינוי שם.
- לוחצים על 'הוספת קובץ' add
> HTML. נותנים לקובץ את השם
sidebar
.
- חוזרים על שלב 5 כדי ליצור עוד 4 קובצי HTML בשמות
about
, authorizationEmail
, creatorNotification
ו-respondentNotification
.
בסיום, אמורים להיות לכם קובץ סקריפט אחד ו-5 קובצי HTML.
מחליפים את התוכן של כל קובץ בקוד התואם הבא, ואז לוחצים על 'שמירה'
.
מריצים את הסקריפט
- חוזרים לטופס ומריעננים את הדף.
- מוסיפים לשדה הטופס שאלה עם טקסט לתשובה קצרה. בקטע Untitled question, מזינים Email Address. אפשר גם ליצור שאלות אחרות לטופס.
- לוחצים על סמל התוספים extension
> הודעות על שליחת טפסים. יכול להיות שיחלפו כמה שניות עד שהתוספים extension יופיעו.
- בתיבת הדו-שיח, לוחצים על הגדרת התראות.
- כשמוצגת בקשה, מאשרים את התוסף.
- שוב, לוחצים על 'תוספים' extension
> התראות לגבי טפסים
> הגדרת התראות.
- בתוסף, מסמנים את התיבה Notify me ומזינים את כתובת האימייל.
- בשדה שליחת התראות אחרי כל, מזינים 1.
- לוחצים על שמירה.
- כדי לשלוח את התשובה, לוחצים על סמל התצוגה המקדימה visibility.
- ממלאים את הטופס ולוחצים על שליחה.
- צריך לבדוק אם התקבלה התראה באימייל.
השלבים הבאים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-02-14 (שעון UTC).
[null,null,["עדכון אחרון: 2025-02-14 (שעון UTC)."],[[["This Google Forms add-on automates email notifications to form creators and/or respondents upon submission."],["Customizable settings allow control over notification frequency, recipient emails, and content."],["The add-on utilizes Google Apps Script triggers to execute functions when the form is opened, installed, or submitted."],["Users configure notification preferences through a sidebar accessible within the Google Form."],["The script manages authorization to access Google services for sending emails and interacting with form data."]]],["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"]]