Enum DestinationType
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
DestinazioneTipo
Un enum che rappresenta i tipi supportati di destinazioni delle risposte ai moduli. Tutti i moduli, inclusi quelli per i quali non è impostata esplicitamente una destinazione, salvano una copia delle risposte nello spazio di archiviazione delle risposte del modulo. Puoi accedere ai tipi di destinazione da FormApp.DestinationType
.
Per chiamare un enum, devi chiamare la relativa classe, il nome e la proprietà di base. Ad esempio,
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());
Proprietà
Proprietà | Tipo | Descrizione |
SPREADSHEET | Enum | Un foglio di lavoro di Fogli Google come destinazione per le risposte ai moduli. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]