Enum DestinationType
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نوع مقصد شماره ای که نشان دهنده انواع پشتیبانی شده از مقصدهای فرم-پاسخ است. همه فرمها، از جمله آنهایی که بهصراحت مقصدی ندارند، یک کپی از پاسخها را در فروشگاه پاسخ فرم ذخیره میکنند . از طریق Form App.DestinationType
می توان به انواع مقصد دسترسی داشت.
برای فراخوانی یک enum، کلاس والد، نام و ویژگی آن را فراخوانی می کنید. برای مثال، FormApp.DestinationType.SPREADSHEET
.
// Open a form by ID and create a new spreadsheet.
const form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
const ss = SpreadsheetApp.create('Spreadsheet Name');
// Update the form's response destination.
form.setDestination(FormApp.DestinationType.SPREADSHEET, ss.getId());
خواص
اموال | تایپ کنید | توضیحات |
---|
SPREADSHEET | Enum | صفحهگسترده Google Sheets به عنوان مقصدی برای پاسخهای فرم. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eDestinationType\u003c/code\u003e is an enum defining where form responses can be sent, with all responses saved in the form's response store by default.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying a Google Sheet as a destination for form responses using \u003ccode\u003eFormApp.DestinationType.SPREADSHEET\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can set the destination of a form using the \u003ccode\u003esetDestination()\u003c/code\u003e method, providing the destination type and ID.\u003c/p\u003e\n"]]],[],null,["# Enum DestinationType\n\nDestinationType\n\nAn enum representing the supported types of form-response destinations. All forms, including\nthose that do not have a destination set explicitly, [save a copy of responses in the form's\nresponse store](https://support.google.com/drive/answer/2917686). Destination types can be accessed from [FormApp.DestinationType](/apps-script/reference/forms/form-app#DestinationType).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nFormApp.DestinationType.SPREADSHEET`.\n\n```javascript\n// Open a form by ID and create a new spreadsheet.\nconst form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');\nconst ss = SpreadsheetApp.create('Spreadsheet Name');\n\n// Update the form's response destination.\nform.setDestination(FormApp.DestinationType.SPREADSHEET, ss.getId());\n``` \n\n### Properties\n\n| Property | Type | Description |\n|---------------|--------|------------------------------------------------------------------|\n| `SPREADSHEET` | `Enum` | A Google Sheets spreadsheet as a destination for form responses. |"]]