Enum DestinationType
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
DestinationType
Enum yang mewakili jenis tujuan respons formulir yang didukung. Semua formulir, termasuk
formulir yang tidak memiliki tujuan yang ditetapkan secara eksplisit, menyimpan salinan respons di penyimpanan respons
formulir. Jenis tujuan dapat diakses dari FormApp.DestinationType
.
Untuk memanggil enum, Anda memanggil class induk, nama, dan propertinya. Misalnya,
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());
Properti
Properti | Jenis | Deskripsi |
SPREADSHEET | Enum | Spreadsheet Google Spreadsheet sebagai tujuan untuk respons formulir. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\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. |"]]