Enum EventType
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इवेंटटाइप
ट्रिगर किए गए इवेंट के टाइप को दिखाने वाला एनोटेशन.
किसी एनम को कॉल करने के लिए, उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल किया जाता है. उदाहरण के लिए,
ScriptApp.EventType.CLOCK
.
प्रॉपर्टी
प्रॉपर्टी | टाइप | ब्यौरा |
CLOCK | Enum | समय पर आधारित इवेंट किसी खास समय पर पहुंचने के बाद, ट्रिगर ट्रिगर होता है. |
ON_OPEN | Enum | जब कोई उपयोगकर्ता Google Docs, Sheets या Forms की कोई फ़ाइल खोलता है, तब यह ट्रिगर होता है. |
ON_EDIT | Enum | जब कोई उपयोगकर्ता Google Sheets फ़ाइल में बदलाव करता है, तो ट्रिगर चालू हो जाता है. उदाहरण के लिए, किसी सेल में नई वैल्यू डालने पर, इसे बदलाव के बजाय बदलाव के तौर पर गिना जाता है. |
ON_FORM_SUBMIT | Enum | जब उपयोगकर्ता किसी Google फ़ॉर्म का जवाब देता है, तब यह ट्रिगर होता है. यह ट्रिगर, Google फ़ॉर्म में या उस Google Sheets फ़ाइल में उपलब्ध होता है जिसमें फ़ॉर्म के जवाब भेजे जाते हैं. |
ON_CHANGE | Enum | जब उपयोगकर्ता Google Sheets फ़ाइल में बदलाव करता है, तो ट्रिगर चालू हो जाता है. उदाहरण के लिए, कोई पंक्ति जोड़ने पर, इसे बदलाव के बजाय बदलाव के तौर पर गिना जाता है. |
ON_EVENT_UPDATED | Enum | तय किए गए Google Calendar में कोई इवेंट बनाने, अपडेट करने या मिटाने पर, ट्रिगर ट्रिगर होता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]