Enum DestinationType
宛先の種類フォームの回答の宛先としてサポートされているタイプを表す列挙型。宛先が明示的に設定されていないフォームを含め、すべてのフォームはフォームの回答ストアに回答のコピーを保存します。デスティネーションのタイプには FormApp.DestinationType
からアクセスできます。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
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 スプレッドシート。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-22 UTC。
[null,null,["最終更新日 2024-12-22 UTC。"],[[["`DestinationType` is an enum defining where form responses can be sent, with all responses saved in the form's response store by default."],["It allows specifying a Google Sheet as a destination for form responses using `FormApp.DestinationType.SPREADSHEET`."],["You can set the destination of a form using the `setDestination()` method, providing the destination type and ID."]]],[]]