Enum DestinationType
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Tipo de destino
Es una enumeración que representa los tipos de destinos de respuesta de formulario admitidos. Todos los formularios, incluidos aquellos que no tienen un destino establecido de forma explícita, guardan una copia de las respuestas en el almacén de respuestas del formulario. Se puede acceder a los tipos de destinos desde FormApp.DestinationType
.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
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());
Propiedades
Propiedad | Tipo | Descripción |
SPREADSHEET | Enum | Una hoja de cálculo de Hojas de cálculo de Google como destino para las respuestas del formulario |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 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. |"]]