Enum EventType
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
イベントタイプトリガーされたイベントのタイプを示す列挙型。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
ScriptApp.EventType.CLOCK
です。
プロパティ
プロパティ | タイプ | 説明 |
CLOCK | Enum | 時間ベースのイベントが特定の時刻に達すると、トリガーが起動します。 |
ON_OPEN | Enum | ユーザーが Google ドキュメント、スプレッドシート、フォームのファイルを開くと、トリガーが実行されます。 |
ON_EDIT | Enum | トリガーは、ユーザーが Google スプレッドシート ファイルを編集すると(たとえば、セルに新しい値を入力すると、変更ではなく編集としてカウントされます)トリガーがトリガーされます。 |
ON_FORM_SUBMIT | Enum | このトリガーは、ユーザーが Google フォームに回答すると発動します。このトリガーは、Google フォーム自体またはフォームが回答を送信する Google スプレッドシート ファイルで使用できます。 |
ON_CHANGE | Enum | トリガーは、ユーザーが Google スプレッドシート ファイルを変更すると(たとえば、行を追加すると、これは編集ではなく変更としてカウントされます)トリガーが実行されます。 |
ON_EVENT_UPDATED | Enum | 指定した Google カレンダーで予定が作成、更新、削除されると、トリガーが実行されます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003e\u003ccode\u003eEventType\u003c/code\u003e is an enumeration used to define the type of event that triggers a script to run.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEventType\u003c/code\u003e enum includes properties such as \u003ccode\u003eCLOCK\u003c/code\u003e, \u003ccode\u003eON_OPEN\u003c/code\u003e, \u003ccode\u003eON_EDIT\u003c/code\u003e, \u003ccode\u003eON_FORM_SUBMIT\u003c/code\u003e, \u003ccode\u003eON_CHANGE\u003c/code\u003e, and \u003ccode\u003eON_EVENT_UPDATED\u003c/code\u003e, each corresponding to a specific event trigger.\u003c/p\u003e\n"],["\u003cp\u003eTo call an enum property, use the syntax \u003ccode\u003eScriptApp.EventType.PROPERTY_NAME\u003c/code\u003e, replacing \u003ccode\u003ePROPERTY_NAME\u003c/code\u003e with the desired event type (e.g., \u003ccode\u003eScriptApp.EventType.CLOCK\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThese event triggers allow scripts to automatically execute in response to various actions within Google Apps like Docs, Sheets, Forms, and Calendar.\u003c/p\u003e\n"]]],[],null,["# Enum EventType\n\nEventType\n\nAn enumeration denoting the type of triggered event.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nScriptApp.EventType.CLOCK`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `CLOCK` | `Enum` | The trigger fires once the time-driven event reaches a specific time. |\n| `ON_OPEN` | `Enum` | The trigger fires once the user opens the Google Docs, Sheets, or Forms file. |\n| `ON_EDIT` | `Enum` | The trigger fires once the user edits the Google Sheets file (for example, by entering a new value into a cell, which counts as an edit instead of a change). |\n| `ON_FORM_SUBMIT` | `Enum` | The trigger fires once the user responds to a Google Form. This trigger is available either in the Google Form itself or in the Google Sheets file that the form sends its responses to. |\n| `ON_CHANGE` | `Enum` | The trigger fires once the user changes the Google Sheets file (for example, by adding a row, which counts as a change instead of an edit). |\n| `ON_EVENT_UPDATED` | `Enum` | The trigger fires once an event gets created, updated, or deleted on the specified Google Calendar. |"]]