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.constform=FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');constss=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
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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."]]],[]]